From 881eb5bd04a8d66836bb7f2adbad06d883a4e14e Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 24 Feb 2026 13:28:09 +0100 Subject: [PATCH] Create runtipi.sh --- ct/runtipi.sh | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 ct/runtipi.sh diff --git a/ct/runtipi.sh b/ct/runtipi.sh new file mode 100644 index 000000000..4b62015a4 --- /dev/null +++ b/ct/runtipi.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2026 tteck +# Author: tteck (tteckster) | Migration: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://runtipi.io/ + +APP="Runtipi" +var_tags="${var_tags:-os}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +ADDON_SCRIPT="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/runtipi.sh" + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/runtipi ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + msg_warn "⚠️ ${APP} has been migrated to an addon script." + echo "" + msg_info "This is a one-time migration. After this, you can update ${APP} anytime with:" + echo -e "${TAB}${TAB}${GN}update_runtipi${CL} or ${GN}bash <(curl -fsSL ${ADDON_SCRIPT})${CL}" + echo "" + read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM + if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then + msg_warn "Migration skipped. The old update will continue to work for now." + msg_info "Updating ${APP} (legacy)" + cd /opt/runtipi && ./runtipi-cli update latest + msg_ok "Updated ${APP}" + exit + fi + + msg_info "Migrating update function" + cat <<'MIGRATION_EOF' >/usr/bin/update +bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/runtipi.sh)" +MIGRATION_EOF + chmod +x /usr/bin/update + + ln -sf /usr/bin/update /usr/bin/update_runtipi 2>/dev/null || true + msg_ok "Migration complete" + + msg_info "Running addon update" + type=update bash <(curl -fsSL "${ADDON_SCRIPT}") + 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} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"