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:
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"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user