Added check for root
This commit is contained in:
		@@ -12,6 +12,12 @@ set -u
 | 
			
		||||
# The Wordpress Site is then available at localhost/YOUR_SITENAME 
 | 
			
		||||
# user: admin   pw: admin ( change !! )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [[ $EUID -ne 0 ]]; then
 | 
			
		||||
   echo "This script must be run as root" 
 | 
			
		||||
   exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ $# -eq 0 ]] ; then
 | 
			
		||||
    echo 'Site name required. Exiting ......'
 | 
			
		||||
    exit 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user