check status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user