mirror of
				https://github.com/snipe/snipe-it.git
				synced 2025-10-29 19:31:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			371 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			371 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| # ensure running as root
 | |
| if [ "$(id -u)" != "0" ]; then
 | |
|     #Debian doesnt have sudo if root has a password.
 | |
|     if ! hash sudo 2>/dev/null; then
 | |
|         exec su -c "$0" "$@"
 | |
|     else
 | |
|         exec sudo "$0" "$@"
 | |
|     fi
 | |
| fi
 | |
| 
 | |
| wget https://raw.githubusercontent.com/snipe/snipe-it/master/snipeit.sh
 | |
| chmod 744 snipeit.sh
 | |
| ./snipeit.sh 2>&1 | tee -a /var/log/snipeit-install.log |