mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2025-07-23 18:35:01 +02:00
Fixed conatainer id detection
Supporting container ids larger than 999.
This commit is contained in:
@@ -85,7 +85,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get next free LXC-number
|
# Get next free LXC-number
|
||||||
LXC_LST=$( lxc-ls | egrep -o '.{1,5}$' )
|
LXC_LST=$( lxc-ls -1 | tail -1 )
|
||||||
LXC_CHK=$((LXC_LST+1));
|
LXC_CHK=$((LXC_LST+1));
|
||||||
|
|
||||||
if [ $LXC_CHK -lt 100 ] || [ -f /etc/pve/qemu-server/$LXC_CHK.conf ]; then
|
if [ $LXC_CHK -lt 100 ] || [ -f /etc/pve/qemu-server/$LXC_CHK.conf ]; then
|
||||||
|
Reference in New Issue
Block a user