From 549faf28d45fdbbd6649af2912bf0c919f730824 Mon Sep 17 00:00:00 2001 From: Mitch Date: Sat, 31 Jan 2026 21:00:43 -0600 Subject: [PATCH 01/11] Add ddclient LXC container --- ct/ddclient.sh | 46 ++++++++++++++++++++++++++++ frontend/public/json/ddclient.json | 48 ++++++++++++++++++++++++++++++ install/ddclient-install.sh | 44 +++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 ct/ddclient.sh create mode 100644 frontend/public/json/ddclient.json create mode 100644 install/ddclient-install.sh diff --git a/ct/ddclient.sh b/ct/ddclient.sh new file mode 100644 index 000000000..d1561dc15 --- /dev/null +++ b/ct/ddclient.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2026 mitchscobell +# Author: mitchscobell +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://ddclient.net/ + +APP="ddclient" +var_tags="${var_tags:-network}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-512}" +var_disk="${var_disk:-2}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -f /etc/ddclient.conf ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP}" + $STD apt-get update + $STD apt-get install --only-upgrade -y ddclient + $STD systemctl restart ddclient + msg_ok "Updated ${APP}" + msg_ok "Updated successfully!" + exit +} + +start +build_container +description + +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Configuration file location:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}/etc/ddclient.conf${CL}" diff --git a/frontend/public/json/ddclient.json b/frontend/public/json/ddclient.json new file mode 100644 index 000000000..41f743e44 --- /dev/null +++ b/frontend/public/json/ddclient.json @@ -0,0 +1,48 @@ +{ + "name": "ddclient", + "slug": "ddclient", + "categories": [ + 4 + ], + "date_created": "2026-01-31", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": null, + "documentation": "https://ddclient.net/", + "website": "https://ddclient.net/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ddclient.webp", + "config_path": "/etc/ddclient.conf", + "description": "ddclient is a Perl client used to update dynamic DNS entries for accounts on a wide range of dynamic DNS service providers. It supports multiple protocols and providers, allowing automatic IP address updates for your domain names.", + "install_methods": [ + { + "type": "default", + "script": "ct/ddclient.sh", + "resources": { + "cpu": 1, + "ram": 512, + "hdd": 2, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "type": "info", + "text": "After installation, edit `/etc/ddclient.conf` with your dynamic DNS provider credentials" + }, + { + "type": "info", + "text": "Sample configuration is created for Namecheap but can be modified for other providers" + }, + { + "type": "info", + "text": "The configuration file is set to chmod 600 for security" + } + ] +} diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh new file mode 100644 index 000000000..7e19572bd --- /dev/null +++ b/install/ddclient-install.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +# Copyright (c) 2026 mitchscobell +# Author: mitchscobell +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://ddclient.net/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +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 +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 +server=dynamicdns.park-your-domain.com +login=yourdomain.com +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" + +motd_ssh +echo -e "echo -e \" 🔧 \\\\033[1;33m Configuration: \\\\033[1;32m/etc/ddclient.conf\\\\033[0m\"" >>/etc/profile.d/00_lxc-details.sh +echo "echo \"\"" >>/etc/profile.d/00_lxc-details.sh +customize +cleanup_lxc From 7cb261e774ce569f8d796541e3a2a2b69edfabbd Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sat, 31 Jan 2026 21:06:32 -0600 Subject: [PATCH 02/11] Apply suggestion from @greptile-apps[bot] Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- ct/ddclient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index d1561dc15..ce62d9f55 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2026 mitchscobell # Author: mitchscobell # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE From 6bf2d47445101810390d3eb86689e9a74ca23e3b Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sat, 31 Jan 2026 21:07:37 -0600 Subject: [PATCH 03/11] Apply suggestions from code review Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- ct/ddclient.sh | 4 ++-- install/ddclient-install.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index ce62d9f55..40c7257b5 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 7e19572bd..f2fd05bba 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 From fbd0c4714b7e166a6e9491f64a3241ad39b20339 Mon Sep 17 00:00:00 2001 From: Mitch Date: Sat, 31 Jan 2026 21:08:21 -0600 Subject: [PATCH 04/11] Fix MOTD: Use heredoc pattern to avoid escaping issues --- install/ddclient-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh index f2fd05bba..d61a688ba 100644 --- a/install/ddclient-install.sh +++ b/install/ddclient-install.sh @@ -38,7 +38,9 @@ systemctl enable -q --now ddclient msg_ok "ddclient service enabled and started" motd_ssh -echo -e "echo -e \" 🔧 \\\\033[1;33m Configuration: \\\\033[1;32m/etc/ddclient.conf\\\\033[0m\"" >>/etc/profile.d/00_lxc-details.sh -echo "echo \"\"" >>/etc/profile.d/00_lxc-details.sh +cat <<'EOF' >>/etc/profile.d/00_lxc-details.sh +echo -e " 🔧 \033[1;33m Configuration: \033[1;32m/etc/ddclient.conf\033[0m" +echo "" +EOF customize cleanup_lxc From 8cc2d78ab2c08656ce052247bb34cc47c1fcd7d3 Mon Sep 17 00:00:00 2001 From: Mitch Date: Sat, 31 Jan 2026 21:24:13 -0600 Subject: [PATCH 05/11] Changed the the copyright range header comment based on other scripts --- ct/ddclient.sh | 2 +- install/ddclient-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index 40c7257b5..58c049c8f 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2026 mitchscobell +# Copyright (c) 2021-2026 mitchscobell # Author: mitchscobell # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ddclient.net/ diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh index d61a688ba..2d8362e19 100644 --- a/install/ddclient-install.sh +++ b/install/ddclient-install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright (c) 2026 mitchscobell +# Copyright (c) 2021-2026 mitchscobell # Author: mitchscobell # License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE # Source: https://ddclient.net/ From d57bf0118720b05c6c4044e6baa64e204f4c7f58 Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sun, 1 Feb 2026 06:33:55 -0600 Subject: [PATCH 06/11] Update ddclient-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/ddclient-install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh index 2d8362e19..87eb3f4c0 100644 --- a/install/ddclient-install.sh +++ b/install/ddclient-install.sh @@ -38,9 +38,5 @@ systemctl enable -q --now ddclient msg_ok "ddclient service enabled and started" motd_ssh -cat <<'EOF' >>/etc/profile.d/00_lxc-details.sh -echo -e " 🔧 \033[1;33m Configuration: \033[1;32m/etc/ddclient.conf\033[0m" -echo "" -EOF customize cleanup_lxc From e1cb251b000c6ff0df23d56193c5632dcd06c511 Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sun, 1 Feb 2026 06:34:01 -0600 Subject: [PATCH 07/11] Update ddclient-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/ddclient-install.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh index 87eb3f4c0..44111f9db 100644 --- a/install/ddclient-install.sh +++ b/install/ddclient-install.sh @@ -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 @@ -29,13 +28,9 @@ login=yourdomain.com password='your-ddns-password' @,www EOF - chmod 600 /etc/ddclient.conf - msg_ok "Sample /etc/ddclient.conf created" -fi - -msg_info "Enabling ddclient service" +chmod 600 /etc/ddclient.conf systemctl enable -q --now ddclient -msg_ok "ddclient service enabled and started" +msg_ok "Created ddclient service" motd_ssh customize From dee36a671faa02fd545f5f389465989f1c1b84c4 Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sun, 1 Feb 2026 06:34:07 -0600 Subject: [PATCH 08/11] Update ddclient.json Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- frontend/public/json/ddclient.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/public/json/ddclient.json b/frontend/public/json/ddclient.json index 41f743e44..18f719abd 100644 --- a/frontend/public/json/ddclient.json +++ b/frontend/public/json/ddclient.json @@ -40,9 +40,5 @@ "type": "info", "text": "Sample configuration is created for Namecheap but can be modified for other providers" }, - { - "type": "info", - "text": "The configuration file is set to chmod 600 for security" - } ] } From 035a39661eb0f66694501de9236f1e90e52fe910 Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sun, 1 Feb 2026 06:34:16 -0600 Subject: [PATCH 09/11] Update ddclient.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/ddclient.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index 58c049c8f..43b44daa6 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -27,11 +27,12 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Updating ${APP}" + + msg_info "Updating ddclient" $STD apt update $STD apt install --only-upgrade -y ddclient $STD systemctl restart ddclient - msg_ok "Updated ${APP}" + msg_ok "Updated ddclient" msg_ok "Updated successfully!" exit } From c1df855acd0b872aac57bdae4b2610e6573676a2 Mon Sep 17 00:00:00 2001 From: Mitch Scobell Date: Sun, 1 Feb 2026 07:49:27 -0600 Subject: [PATCH 10/11] Update ddclient.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/ddclient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index 43b44daa6..2ab672463 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2026 mitchscobell +# Copyright (c) 2021-2026 community-scripts ORG # Author: mitchscobell # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://ddclient.net/ From 6ab319894211f3d7f3b5fff440f01440d2952c34 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:10:48 +0100 Subject: [PATCH 11/11] Update ddclient.sh --- ct/ddclient.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ct/ddclient.sh b/ct/ddclient.sh index 2ab672463..05fd4e33a 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -43,5 +43,3 @@ description msg_ok "Completed successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} Configuration file location:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}/etc/ddclient.conf${CL}"