mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 08:02:28 +01:00 
			
		
		
		
	Fixed interactive mode of install.sh
This commit is contained in:
		
							
								
								
									
										10
									
								
								install.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								install.sh
									
									
									
									
									
								
							@@ -49,10 +49,6 @@ while getopts "hi:s:c:" opt; do
 | 
				
			|||||||
done
 | 
					done
 | 
				
			||||||
shift $((OPTIND-1))
 | 
					shift $((OPTIND-1))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Load configuration file
 | 
					 | 
				
			||||||
echo "Loading config file '$config'..."
 | 
					 | 
				
			||||||
source $config
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
OPTS=$(ls -d $PWD/src/*/ | grep -v __ | xargs basename -a)
 | 
					OPTS=$(ls -d $PWD/src/*/ | grep -v __ | xargs basename -a)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
valid=0
 | 
					valid=0
 | 
				
			||||||
@@ -90,6 +86,10 @@ if [[ "$valid" != "1" ]]; then
 | 
				
			|||||||
  usage 1
 | 
					  usage 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Load configuration file
 | 
				
			||||||
 | 
					echo "Loading config file '$config'..."
 | 
				
			||||||
 | 
					source $config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source $PWD/src/$service/constants-service.conf
 | 
					source $PWD/src/$service/constants-service.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CHeck is the newest template available, else download it.
 | 
					# CHeck is the newest template available, else download it.
 | 
				
			||||||
@@ -162,4 +162,4 @@ if [[ $service == "zmb-ad" ]]; then
 | 
				
			|||||||
  pct stop $LXC_NBR
 | 
					  pct stop $LXC_NBR
 | 
				
			||||||
  pct set $LXC_NBR \-nameserver $(echo $LXC_IP | cut -d'/' -f 1)
 | 
					  pct set $LXC_NBR \-nameserver $(echo $LXC_IP | cut -d'/' -f 1)
 | 
				
			||||||
  pct start $LXC_NBR
 | 
					  pct start $LXC_NBR
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user