From 7f0319f756088cb9dcae9f158f03b372a84d8430 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 9 Dec 2025 13:42:16 +0100 Subject: [PATCH] cleanup --- ct/deferred/ghostfolio.sh | 42 -------------- ct/deferred/kasm.sh | 66 ---------------------- ct/deferred/librespeed.sh | 56 ------------------- ct/deferred/openwebui.sh | 73 ------------------------ ct/deferred/vikunja.sh | 77 -------------------------- ct/{deferred => }/koel.sh | 0 install/{deferred => }/koel-install.sh | 0 7 files changed, 314 deletions(-) delete mode 100644 ct/deferred/ghostfolio.sh delete mode 100644 ct/deferred/kasm.sh delete mode 100644 ct/deferred/librespeed.sh delete mode 100644 ct/deferred/openwebui.sh delete mode 100644 ct/deferred/vikunja.sh rename ct/{deferred => }/koel.sh (100%) rename install/{deferred => }/koel-install.sh (100%) diff --git a/ct/deferred/ghostfolio.sh b/ct/deferred/ghostfolio.sh deleted file mode 100644 index 56002d405..000000000 --- a/ct/deferred/ghostfolio.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: MickLesk (Canbiz) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: - -APP="Ghostfolio" -var_tags="${var_tags:-portfolio}" -var_disk="${var_disk:-6}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - if [[ ! -d /opt/ghostfolio ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating OS" - apt-get update &>/dev/null - apt-get -y upgrade &>/dev/null - 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} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3333${CL}" diff --git a/ct/deferred/kasm.sh b/ct/deferred/kasm.sh deleted file mode 100644 index 565c71fbd..000000000 --- a/ct/deferred/kasm.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: Omar Minaya -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://www.kasmweb.com/docs/latest/index.html - -APP="Kasm" -var_tags="${var_tags:-os}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-4192}" -var_disk="${var_disk:-30}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-0}" -var_fuse="${var_fuse:-yes}" -var_tun="${var_tun:-yes}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/kasm ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - RELEASE=$(curl -fsSL 'https://www.kasmweb.com/downloads' | grep -o 'https://kasm-static-content.s3.amazonaws.com/kasm_release_[^"]*\.tar\.gz' | head -n 1 | sed -E 's/.*release_(.*)\.tar\.gz/\1/') - if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then - msg_info "Updating ${APP} to v${RELEASE}" - temp_file=$(mktemp) - curl -fsSL "https://kasm-static-content.s3.amazonaws.com/kasm_release_${RELEASE}.tar.gz" -o "$temp_file" - tar zxf "$temp_file" - mkdir -p /opt/kasm/backups/ - chmod 777 /opt/kasm/backups/ - mv /opt/kasm/1.*/certs/kasm_nginx.crt /opt/kasm/kasm_nginx.crt_bak - printf 'y\n' | $STD sudo bash /tmp/kasm_release/upgrade.sh - $STD sudo bash /tmp/kasm_release/upgrade.sh - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated ${APP} to v${RELEASE}" - - msg_info "Cleaning up" - rm -f "$temp_file" - rm -rf /tmp/kasm_release - $STD apt-get -y autoremove - $STD apt-get -y autoclean - msg_ok "Cleaned" - else - msg_ok "No update required. ${APP} is already at v${RELEASE}" - fi - 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}https://${IP}${CL}" diff --git a/ct/deferred/librespeed.sh b/ct/deferred/librespeed.sh deleted file mode 100644 index 95650828b..000000000 --- a/ct/deferred/librespeed.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/refs/heads/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: elvito -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/librespeed/speedtest - -APP="librespeed" -var_tags="speedtest" -var_cpu="1" -var_ram="512" -var_disk="4" -var_os="debian" -var_version="12" -var_unprivileged="1" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -f /opt/librespeed/index.html ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - RELEASE=$(curl -fsSL https://api.github.com/repos/librespeed/speedtest/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') - if [[ ! -f /opt/librespeed/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt//librespeed/${APP}_version.txt)" ]]; then - msg_info "Updating $APP..." - temp_file=$(mktemp) - curl -fsSL "https://github.com/librespeed/speedtest/archive/refs/tags/${RELEASE}.zip" -o "$temp_file" - mkdir -p /temp - unzip -qu "$temp_file" -d /temp - cd /temp/speedtest-"${RELEASE}" - cp -u favicon.ico index.html speedtest.js speedtest_worker.js /opt/librespeed/ - cp -ru backend /opt/librespeed/ - echo "${RELEASE}" >/opt/"${APP}"_version.txt - systemctl restart caddy - msg_ok "$APP has been updated." - else - msg_ok "No update required. ${APP} is already at ${RELEASE}" - fi - 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}" diff --git a/ct/deferred/openwebui.sh b/ct/deferred/openwebui.sh deleted file mode 100644 index 85341bd9b..000000000 --- a/ct/deferred/openwebui.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 tteck -# Author: havardthom -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://openwebui.com/ - -APP="Open WebUI" -var_tags="${var_tags:-ai;interface}" -var_cpu="${var_cpu:-4}" -var_ram="${var_ram:-8192}" -var_disk="${var_disk:-25}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/open-webui ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if [ -x "/usr/bin/ollama" ]; then - msg_info "Updating Ollama" - OLLAMA_VERSION=$(ollama -v | awk '{print $NF}') - RELEASE=$(curl -fsSL https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') - if [ "$OLLAMA_VERSION" != "$RELEASE" ]; then - curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz - tar -C /usr -xzf ollama-linux-amd64.tgz - rm -rf ollama-linux-amd64.tgz - msg_ok "Ollama updated to version $RELEASE" - else - msg_ok "Ollama is already up to date." - fi - fi - - msg_info "Updating ${APP} (Patience)" - systemctl stop open-webui.service - mkdir -p /opt/openwebui-backup - cp -rf /opt/openwebui/backend/data /opt/openwebui-backup - cp /opt/openwebui/.env /opt - rm -rf /opt/openwebui - fetch_and_deploy_gh_release "open-webui/open-webui" - cd /opt/openwebui - $STD npm install - export NODE_OPTIONS="--max-old-space-size=3584" - sed -i "s/git rev-parse HEAD/openssl rand -hex 20/g" /opt/openwebui/svelte.config.js - $STD npm run build - cd ./backend - $STD pip install -r requirements.txt -U - cp -rf /opt/openwebui-backup/* /opt/openwebui/backend - mv /opt/.env /opt/openwebui/ - systemctl start open-webui.service - 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} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" diff --git a/ct/deferred/vikunja.sh b/ct/deferred/vikunja.sh deleted file mode 100644 index fd2483512..000000000 --- a/ct/deferred/vikunja.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: MickLesk (Canbiz) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://vikunja.io/ - -APP="Vikunja" -var_tags="${var_tags:-todo-app}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-1024}" -var_disk="${var_disk:-4}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/vikunja ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if whiptail --backtitle "Vikunja Update" --title "🔄 VERSION SELECTION" --yesno \ - "Choose the version type to update to:\n\n• STABLE: Recommended for production use\n• UNSTABLE: Latest development version\n\n⚠️ WARNING: Unstable versions may contain bugs,\nbe incomplete, or cause system instability.\nOnly use for testing purposes.\n\nDo you want to use the UNSTABLE version?\n(No = Stable, Yes = Unstable)" 16 70 --defaultno; then - msg_info "Selecting version" - RELEASE="unstable" - FILENAME="vikunja-${RELEASE}-x86_64.deb" - msg_ok "Selected UNSTABLE version" - else - msg_info "Selecting version" - RELEASE=$(curl -fsSL https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) - FILENAME="vikunja-${RELEASE}-amd64.deb" - msg_ok "Selected STABLE version: ${RELEASE}" - fi - - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping ${APP}" - systemctl stop vikunja - msg_ok "Stopped ${APP}" - msg_info "Updating ${APP} to ${RELEASE}" - cd /opt - rm -rf /opt/vikunja/vikunja - rm -rf "/opt/$FILENAME" - curl -fsSL "https://dl.vikunja.io/vikunja/$RELEASE/$FILENAME" -o $(basename "https://dl.vikunja.io/vikunja/$RELEASE/$FILENAME") - export DEBIAN_FRONTEND=noninteractive - $STD dpkg -i $FILENAME - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Updated ${APP}" - msg_info "Starting ${APP}" - systemctl start vikunja - msg_ok "Started ${APP}" - msg_info "Cleaning Up" - rm -rf /opt/$FILENAME - msg_ok "Cleaned" - msg_ok "Updated Successfully" - else - msg_ok "No update required. ${APP} is already at ${RELEASE}" - fi - 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}:3456${CL}" diff --git a/ct/deferred/koel.sh b/ct/koel.sh similarity index 100% rename from ct/deferred/koel.sh rename to ct/koel.sh diff --git a/install/deferred/koel-install.sh b/install/koel-install.sh similarity index 100% rename from install/deferred/koel-install.sh rename to install/koel-install.sh