mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 10:45:50 +00:00 
			
		
		
		
	Warn if the update script is not executed as root
This commit is contained in:
		
				
					committed by
					
						
						Nik Bougalis
					
				
			
			
				
	
			
			
			
						parent
						
							1942fee581
						
					
				
				
					commit
					45c1c38993
				
			@@ -2,6 +2,12 @@
 | 
			
		||||
 | 
			
		||||
# auto-update script for rippled daemon
 | 
			
		||||
 | 
			
		||||
# Check for sudo/root permissions
 | 
			
		||||
if [[ $(id -u) -ne 0 ]] ; then
 | 
			
		||||
   echo "This update script must be run as root or sudo"
 | 
			
		||||
   exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
LOCKDIR=/tmp/rippleupdate.lock
 | 
			
		||||
UPDATELOG=/var/log/rippled/update.log
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user