#!/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_=no UPDATEHASH_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJK1234567 DOMAIN_=mynextcloud.example.com UPDATEINTERVAL_=30 DESCRIPTION="DDNS FreeDNS client (need account)" UPDATEURL=https://freedns.afraid.org/dynamic/update.php URL="${UPDATEURL}?${UPDATEHASH_}" install() { apt-get update apt-get install --no-install-recommends -y dnsutils cat > /etc/systemd/system/freedns.service < /usr/local/bin/freedns.sh < /etc/systemd/system/freedns.timer <