1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-14 07:54:04 +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"
# Require script to be run via sudo, but not as root
if [[ $EUID -ne 0 ]]; then
echo "Script must be run with root privilages!"
exit 1
fi
#if [[ $EUID -ne 0 ]]; then
#
# echo "Script must be run with root privilages!"
# exit 1
#fi
# Set cronjob without removing existing
if [ -f $VDMHOME/vdmip.cron ]; then