Remove legacy freedns update command
This commit is contained in:
parent
48cf548a67
commit
d242b21900
|
@ -325,10 +325,8 @@ function remove_htmly {
|
||||||
rm -rf /var/www/$HTMLY_DOMAIN_NAME
|
rm -rf /var/www/$HTMLY_DOMAIN_NAME
|
||||||
fi
|
fi
|
||||||
if [ $HTMLY_CODE ]; then
|
if [ $HTMLY_CODE ]; then
|
||||||
if [ -f /usr/bin/dynamicdns ]; then
|
sed -i '/HTMLY_DOMAIN_NAME.*/d' $CONFIGURATION_FILE
|
||||||
sed -i "/$HTMLY_DOMAIN_NAME/d" /usr/bin/dynamicdns
|
sed -i '/HTMLY_CODE.*/d' $CONFIGURATION_FILE
|
||||||
sed -i "/$HTMLY_CODE/d" /usr/bin/dynamicdns
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
function_check remove_onion_service
|
function_check remove_onion_service
|
||||||
remove_onion_service htmly ${HTMLY_ONION_PORT}
|
remove_onion_service htmly ${HTMLY_ONION_PORT}
|
||||||
|
|
|
@ -108,6 +108,12 @@ function create_freedns_updater {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# remove any legacy command
|
||||||
|
if [ -f /usr/bin/dynamicdns ]; then
|
||||||
|
rm /usr/bin/dynamicdns
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add the update command to cron
|
||||||
if ! grep -q "/usr/local/bin/freedombone-freedns" /etc/crontab; then
|
if ! grep -q "/usr/local/bin/freedombone-freedns" /etc/crontab; then
|
||||||
function_check cron_add_mins
|
function_check cron_add_mins
|
||||||
cron_add_mins 3 '/usr/local/bin/freedombone-freedns'
|
cron_add_mins 3 '/usr/local/bin/freedombone-freedns'
|
||||||
|
|
Loading…
Reference in New Issue