diff --git a/etc/nextcloudpi-config.d/freeDNS.sh b/etc/nextcloudpi-config.d/freeDNS.sh new file mode 100644 index 000000000..62e8eab41 --- /dev/null +++ b/etc/nextcloudpi-config.d/freeDNS.sh @@ -0,0 +1,118 @@ +#!/bin/bash + +# FreeDNS updater client installation on Raspbian +# +# Copyleft 2017 by Panteleimon Sarantos +# GPL licensed (see end of file) * Use at your own risk! +# +# Usage: +# +# ./installer.sh freedns.sh +# +# See installer.sh instructions for details +# +# +# + +ACTIVE_=yes +UPDATEURL_=https://freedns.afraid.org/dynamic/update.php +UPDATEHASH_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJK1234567 +DOMAIN_=nextcloud.example.com +UPDATEINTERVAL_=30 +DESCRIPTION="DDNS FreeDNS client (need account)" +URL="${UPDATEURL_}?${UPDATEHASH_}" + +show_info() +{ + whiptail --yesno \ + --backtitle "NextCloudPi configuration" \ + --title --title "Instructions for FreeDNS client +Set the time in seconds in UPDATEINTERVAL. +>>> Long interval may lead to not updating your IP address for long time. <<<" \ + 20 90 +} + +install() +{ +apt-get install --no-install-recommends -y dnsutils + cat > /usr/local/bin/freedns.sh < /etc/systemd/system/freedns.service < /etc/systemd/system/freedns.timer <