Update ddclient-install.sh

Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
This commit is contained in:
Mitch Scobell 2026-02-01 06:34:01 -06:00 committed by GitHub
parent d57bf01187
commit e1cb251b00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,9 +17,8 @@ msg_info "Installing ddclient"
DEBIAN_FRONTEND=noninteractive $STD apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ddclient
msg_ok "Installed ddclient"
if [[ ! -f /etc/ddclient.conf ]]; then
msg_info "Creating sample ddclient configuration"
cat << 'EOF' >/etc/ddclient.conf
msg_info "Creating ddclient service"
cat << EOF >/etc/ddclient.conf
protocol=namecheap
use=web, web=dynamicdns.park-your-domain.com/getip
protocol=namecheap
@ -30,12 +29,8 @@ password='your-ddns-password'
@,www
EOF
chmod 600 /etc/ddclient.conf
msg_ok "Sample /etc/ddclient.conf created"
fi
msg_info "Enabling ddclient service"
systemctl enable -q --now ddclient
msg_ok "ddclient service enabled and started"
msg_ok "Created ddclient service"
motd_ssh
customize