mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 08:02:28 +01:00 
			
		
		
		
	Change lxc id detection
This commit is contained in:
		@@ -119,8 +119,7 @@ if [ $ctid -gt 99 ]; then
 | 
				
			|||||||
  LXC_CHK=$ctid
 | 
					  LXC_CHK=$ctid
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  # Get next free LXC-number
 | 
					  # Get next free LXC-number
 | 
				
			||||||
  LXC_LST=$( lxc-ls -1 | tail -1 )
 | 
					  LXC_CHK=$(($(pct list | cut -d' ' -f1 | tail -1) + 1))
 | 
				
			||||||
  LXC_CHK=$((LXC_LST+1));
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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