Merge branch 'community-scripts:main' into LocalAGI

This commit is contained in:
BillyOutlast
2026-03-04 17:32:55 -05:00
committed by GitHub
7 changed files with 626 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ $STD npm run build
cat <<EOF >/opt/caddymanager/caddymanager.env
PORT=3000
APP_NAME=Caddy Manager
DB_ENGINE=sqlite
SQLITE_DB_PATH=/opt/caddymanager/caddymanager.sqlite
CORS_ORIGIN=${LOCAL_IP}:80

View File

@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://docs.github.com/en/actions/hosting-your-own-runners
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
NODE_VERSION="22" setup_nodejs
msg_info "Creating runner user (no sudo)"
if ! getent passwd runner >/dev/null 2>&1; then
useradd -m -s /bin/bash runner
fi
msg_ok "Runner user ready"
fetch_and_deploy_gh_release "actions-runner" "actions/runner" "prebuild" "latest" "/opt/actions-runner" "actions-runner-linux-x64-*.tar.gz"
msg_info "Setting ownership for runner user"
chown -R runner:runner /opt/actions-runner
msg_ok "Ownership set"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/actions-runner.service
[Unit]
Description=GitHub Actions self-hosted runner
Documentation=https://docs.github.com/en/actions/hosting-your-own-runners
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=runner
WorkingDirectory=/opt/actions-runner
ExecStart=/opt/actions-runner/run.sh
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q actions-runner
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc