mirror of
https://github.com/namibia/demo-sync.git
synced 2024-11-24 20:27:33 +00:00
trying to fix the script
This commit is contained in:
parent
5103b384f8
commit
a73a3ee38d
10
setip.sh
10
setip.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user