diff --git a/ct/ddclient.sh b/ct/ddclient.sh new file mode 100644 index 000000000..05fd4e33a --- /dev/null +++ b/ct/ddclient.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2021-2026 community-scripts ORG +# 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 ddclient" + $STD apt update + $STD apt install --only-upgrade -y ddclient + $STD systemctl restart ddclient + msg_ok "Updated ddclient" + 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}" diff --git a/frontend/public/json/ddclient.json b/frontend/public/json/ddclient.json new file mode 100644 index 000000000..18f719abd --- /dev/null +++ b/frontend/public/json/ddclient.json @@ -0,0 +1,44 @@ +{ + "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" + }, + ] +} diff --git a/install/ddclient-install.sh b/install/ddclient-install.sh new file mode 100644 index 000000000..44111f9db --- /dev/null +++ b/install/ddclient-install.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 mitchscobell +# Author: mitchscobell +# License: MIT | https://github.com/community-scripts/ProxmoxVED/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 -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ddclient +msg_ok "Installed ddclient" + +msg_info "Creating ddclient service" +cat << EOF >/etc/ddclient.conf +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 +login=yourdomain.com +password='your-ddns-password' +@,www +EOF +chmod 600 /etc/ddclient.conf +systemctl enable -q --now ddclient +msg_ok "Created ddclient service" + +motd_ssh +customize +cleanup_lxc