1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-22 03:25:09 +00:00

trying to fix the script

This commit is contained in:
Llewellyn van der Merwe 2017-07-05 02:28:04 +01:00
parent 5103b384f8
commit a73a3ee38d
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5

View File

@ -13,11 +13,11 @@ VDMSCRIPT="https://raw.githubusercontent.com/vdm-io/dynamic-ip/$BRANCH/setip.sh"
VDMIPSERVER="https://www.vdm.io/setip" VDMIPSERVER="https://www.vdm.io/setip"
# Require script to be run via sudo, but not as root # Require script to be run via sudo, but not as root
if [[ $EUID -ne 0 ]]; then #if [[ $EUID -ne 0 ]]; then
#
echo "Script must be run with root privilages!" # echo "Script must be run with root privilages!"
exit 1 # exit 1
fi #fi
# Set cronjob without removing existing # Set cronjob without removing existing
if [ -f $VDMHOME/vdmip.cron ]; then if [ -f $VDMHOME/vdmip.cron ]; then