mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
Change lxc id detection
This commit is contained in:
parent
2892b7b416
commit
b9f92b610a
@ -119,8 +119,7 @@ if [ $ctid -gt 99 ]; then
|
||||
LXC_CHK=$ctid
|
||||
else
|
||||
# Get next free LXC-number
|
||||
LXC_LST=$( lxc-ls -1 | tail -1 )
|
||||
LXC_CHK=$((LXC_LST+1));
|
||||
LXC_CHK=$(($(pct list | cut -d' ' -f1 | tail -1) + 1))
|
||||
fi
|
||||
|
||||
if [ $LXC_CHK -lt 100 ] || [ -f /etc/pve/qemu-server/$LXC_CHK.conf ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user