swmodd: Get lxc-container state from lxc-info

This commit is contained in:
Niall McGee 2024-05-02 13:19:43 +00:00 committed by Vivek Kumar Dutta
parent bce42023b1
commit 0745ab63cf

View file

@ -43,7 +43,7 @@ start_lxc_container() {
return 0;
fi
state=$(lxc-ls -f | tail -n +2 | grep -w "${name}" | cut -d " " -f 2)
state=$(lxc-info -n "$name" -s -H)
if [ -z "${state}" ]; then
return 0;
fi