Add the ability to disable install
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1 +1,2 @@
 | 
			
		||||
variables.conf
 | 
			
		||||
.disabled
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,11 @@
 | 
			
		||||
 | 
			
		||||
source "$(dirname "$0")/variables.conf"
 | 
			
		||||
 | 
			
		||||
if [ -f $run_directory/.disabled ]; then
 | 
			
		||||
  echo "Installation is disabled. Exiting..."
 | 
			
		||||
  exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# NOTE: the handling of init/service manager comes from this discussion:
 | 
			
		||||
# https://unix.stackexchange.com/questions/18209/detect-init-system-using-the-shell
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user