diff --git a/ct/ddclient.sh b/ct/ddclient.sh index ce62d9f5..40c7257b 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -28,8 +28,8 @@ function update_script() { exit fi msg_info "Updating ${APP}" - $STD apt-get update - $STD apt-get install --only-upgrade -y ddclient + $STD apt update + $STD apt install --only-upgrade -y ddclient $STD systemctl restart ddclient msg_ok "Updated ${APP}" msg_ok "Updated successfully!" diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh index 7e19572b..f2fd05bb 100644 --- a/install/ddclient-install.sh +++ b/install/ddclient-install.sh @@ -2,7 +2,7 @@ # Copyright (c) 2026 mitchscobell # Author: mitchscobell -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE # Source: https://ddclient.net/ source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" @@ -14,14 +14,14 @@ network_check update_os msg_info "Installing ddclient" -DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y 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 -# Sample ddclient.conf -# Replace with your actual settings +protocol=namecheap +use=web, web=dynamicdns.park-your-domain.com/getip protocol=namecheap use=web, web=dynamicdns.park-your-domain.com/getip server=dynamicdns.park-your-domain.com