Skip to content

Commit

Permalink
init noip service in installation step
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Jun 29, 2017
1 parent 27478bc commit a688640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etc/nextcloudpi-config.d/no-ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ EOF
chmod +x /etc/init.d/noip2
cd -
rm -r /tmp/noip

update-rc.d noip2 defaults
update-rc.d noip2 disable
}

configure()
{
[[ $ACTIVE_ != "yes" ]] && { service noip2 stop; update-rc.d noip2 disable; return; }

/usr/local/bin/noip2 -C -c /usr/local/etc/no-ip2.conf -U $TIME_ -u $USER_ -p $PASS_
update-rc.d noip2 defaults
update-rc.d noip2 enable
service noip2 restart
cd /var/www/nextcloud
Expand Down

0 comments on commit a688640

Please sign in to comment.