mirror of
https://git.bashclub.org/bashclub/zamba-lxc-toolbox.git
synced 2025-08-04 10:04:31 +02:00
Fixed conatainer id detection
Supporting container ids larger than 999.
This commit is contained in:
parent
a543e0a076
commit
3376652bbe
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ else
|
|||
fi
|
||||
|
||||
# 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));
|
||||
|
||||
if [ $LXC_CHK -lt 100 ] || [ -f /etc/pve/qemu-server/$LXC_CHK.conf ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue