mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
swmodd: Get lxc-container state from lxc-info
This commit is contained in:
parent
bce42023b1
commit
0745ab63cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue