From 66b3faa1b7b06028fc0d9a109422c529d5eecb23 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 13:23:57 +0000 Subject: [PATCH] Delete gogs (ct) after migration to ProxmoxVE (#1728) Co-authored-by: github-actions[bot] --- ct/gogs.sh | 65 ----------------------------------------- install/gogs-install.sh | 50 ------------------------------- json/gogs.json | 40 ------------------------- 3 files changed, 155 deletions(-) delete mode 100644 ct/gogs.sh delete mode 100644 install/gogs-install.sh delete mode 100644 json/gogs.json diff --git a/ct/gogs.sh b/ct/gogs.sh deleted file mode 100644 index e7150eed..00000000 --- a/ct/gogs.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/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: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://gogs.io/ - -APP="Gogs" -var_tags="${var_tags:-git;code;devops}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-1024}" -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 - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -f /opt/gogs/gogs ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "gogs" "gogs/gogs"; then - msg_info "Stopping Service" - systemctl stop gogs - msg_ok "Stopped Service" - - msg_info "Backing up Data" - cp -r /opt/gogs/custom /opt/gogs_custom_backup - cp -r /opt/gogs/data /opt/gogs_data_backup - msg_ok "Backed up Data" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gogs" "gogs/gogs" "prebuild" "latest" "/opt/gogs" "gogs_*_linux_amd64.tar.gz" - - msg_info "Restoring Data" - cp -r /opt/gogs_custom_backup/. /opt/gogs/custom - cp -r /opt/gogs_data_backup/. /opt/gogs/data - rm -rf /opt/gogs_custom_backup /opt/gogs_data_backup - msg_ok "Restored Data" - - msg_info "Starting Service" - systemctl start gogs - msg_ok "Started Service" - msg_ok "Updated successfully!" - 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}:3000${CL}" diff --git a/install/gogs-install.sh b/install/gogs-install.sh deleted file mode 100644 index 4086a598..00000000 --- a/install/gogs-install.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://gogs.io/ - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt install -y git -msg_ok "Installed Dependencies" - -fetch_and_deploy_gh_release "gogs" "gogs/gogs" "prebuild" "latest" "/opt/gogs" "gogs_*_linux_amd64.tar.gz" - -msg_info "Setting up Gogs" -mkdir -p /opt/gogs/{custom/conf,data,log} -msg_ok "Set up Gogs" - -msg_info "Creating Service" -cat </etc/systemd/system/gogs.service -[Unit] -Description=Gogs Git Service -After=network.target - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/gogs -ExecStart=/opt/gogs/gogs web -Restart=on-failure -RestartSec=5 -Environment=USER=root -Environment=HOME=/root - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now gogs -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/gogs.json b/json/gogs.json deleted file mode 100644 index 8c0f2365..00000000 --- a/json/gogs.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "Gogs", - "slug": "gogs", - "categories": [ - 20 - ], - "date_created": "2026-07-13", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://gogs.io/docs", - "website": "https://gogs.io/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/gogs.webp", - "description": "Gogs is a painless self-hosted Git service written in Go, designed to be the easiest, fastest, and most lightweight way to set up a self-hosted Git service.", - "install_methods": [ - { - "type": "default", - "script": "ct/gogs.sh", - "config_path": "/opt/gogs/custom/conf/app.ini", - "resources": { - "cpu": 2, - "ram": 1024, - "hdd": 8, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "Complete the initial setup via the web installer on first access.", - "type": "info" - } - ] -}