diff --git a/ct/forgejo-runner.sh b/ct/forgejo-runner.sh index c8196a4ea..95d002e26 100644 --- a/ct/forgejo-runner.sh +++ b/ct/forgejo-runner.sh @@ -1,9 +1,9 @@ #!/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 +# Copyright (c) 2021-2026 community-scripts ORG # Author: Simon Friedrich -# License: MIT +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://forgejo.org/ APP="Forgejo Runner" @@ -14,10 +14,9 @@ var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-12}" -# REQUIRED for Podman-in-LXC -var_unprivileged="1" -var_nesting="1" -var_keyctl="1" +var_unprivileged="${var_unprivileged:-1}" +var_nesting="${var_nesting:-1}" +var_keyctl="${var_keyctl:-1}" # ------------------------------------------------- # Framework setup @@ -27,28 +26,6 @@ variables color catch_errors -# ------------------------------------------------- -# Description -# ------------------------------------------------- -function description() { - cat </dev/null 2>&1; then - gpg --keyserver hkps://keys.openpgp.org --recv "$GPG_KEY" >/dev/null 2>&1 -fi - -gpg --verify /tmp/forgejo-runner.asc /usr/local/bin/forgejo-runner >/dev/null 2>&1 \ - && msg_ok "Signature valid" \ - || { msg_error "Signature verification failed"; exit 1; } - -# ------------------------------------------------- -# Runner registration -# ------------------------------------------------- msg_info "Registering Forgejo Runner" export DOCKER_HOST="unix:///run/podman/podman.sock" @@ -106,9 +76,6 @@ forgejo-runner register \ msg_ok "Runner registered" -# ------------------------------------------------- -# systemd service -# ------------------------------------------------- msg_info "Creating systemd service" cat </etc/systemd/system/forgejo-runner.service @@ -131,8 +98,7 @@ TimeoutSec=0 WantedBy=multi-user.target EOF -systemctl daemon-reload -systemctl enable --now forgejo-runner +systemctl enable -q --now forgejo-runner msg_ok "Forgejo Runner service enabled" motd_ssh