check status

This commit is contained in:
2024-02-09 17:57:43 +01:00
parent 8a4712a34f
commit c3e9de982d
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ if [[ $1 == '' ]]; then
fi
echo $(date) "- Start updating $1 LXC container..."
status=$(lxc info microk8s | grep Status | cut -d' ' -f 2)
status=$(lxc info $1 | grep Status | cut -d' ' -f 2)
echo $(date) "- Updating $1 container..."
if [ $status == "STOPPED" ]; then