lxc status changed from 'Running' to 'RUNNING' in lxc 4.20

This commit is contained in:
Alexandre Aubin 2021-11-24 19:52:00 +01:00
parent 1a766eaa64
commit 24aa67e1c5

View file

@ -195,7 +195,7 @@ _LXC_START_AND_WAIT() {
CLEAN_SWAPFILES() {
# Restart it if needed
if [ "$(lxc info $LXC_NAME | grep Status | awk '{print $2}')" != "Running" ]; then
if [ "$(lxc info $LXC_NAME | grep Status | awk '{print $2}')" != "RUNNING" ]; then
lxc start $LXC_NAME
_LXC_START_AND_WAIT $LXC_NAME
fi