mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-11 15:10:45 +02:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 080324828f | |||
| db418a7a3b | |||
| f17a8df641 | |||
| 0fa0a912ac | |||
| b9f7751590 | |||
| 7c0283c73f | |||
| 5774100f05 | |||
| 73a8c55c9d | |||
| 06115ca811 | |||
| e00429ea7e | |||
| de9b2f7ff3 | |||
| 2b541531f7 | |||
| c001360b2d | |||
| b2f8add60f | |||
| fe26465c2c | |||
| 785d33be40 | |||
| 28b4ae0b07 | |||
| e253713148 | |||
| 5748b577c4 | |||
| 7304dec635 | |||
| 28c18b735b | |||
| 46a3f05bfb | |||
| 433064a93f |
Generated
+51
-6
@@ -28,7 +28,6 @@ body:
|
||||
label: 🔎 Did you run the script with verbose mode enabled?
|
||||
description: "Required for debugging any script issue. A verbose log is mandatory."
|
||||
options:
|
||||
- ""
|
||||
- "Yes, verbose mode was enabled and the output is included below"
|
||||
- "No (this issue will likely be closed automatically)"
|
||||
validations:
|
||||
@@ -50,6 +49,32 @@ body:
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: issue_phase
|
||||
attributes:
|
||||
label: 🕒 When does the issue occur?
|
||||
options:
|
||||
- "Initial creation / installation"
|
||||
- "Update of an existing container"
|
||||
- "While the application is running"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: execution_context
|
||||
attributes:
|
||||
label: 🖱️ Where did you run the command?
|
||||
description: "The shell matters — the Proxmox web console starts without some environment variables that a normal login shell sets."
|
||||
options:
|
||||
- "Proxmox web UI → node → Shell"
|
||||
- "Proxmox web UI → LXC → Console"
|
||||
- "SSH into the Proxmox host"
|
||||
- "SSH into the container"
|
||||
- "pct enter from the host"
|
||||
- "Other / not listed"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: checkboxes
|
||||
validations:
|
||||
required: true
|
||||
@@ -68,14 +93,23 @@ body:
|
||||
attributes:
|
||||
label: 🖥️ Which Linux distribution are you using?
|
||||
options:
|
||||
-
|
||||
- Alpine
|
||||
- Debian 11
|
||||
- Debian 12
|
||||
- Debian 13
|
||||
- Devuan 5
|
||||
- Ubuntu 22.04
|
||||
- Ubuntu 24.04
|
||||
- Ubuntu 24.10
|
||||
- Ubuntu 25.04
|
||||
- AlmaLinux 9
|
||||
- AlmaLinux 10
|
||||
- Rocky Linux 9
|
||||
- Rocky Linux 10
|
||||
- CentOS Stream 9
|
||||
- Fedora 42
|
||||
- openSUSE 15
|
||||
- openEuler 25
|
||||
- Gentoo
|
||||
- Other / not listed
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -85,16 +119,27 @@ body:
|
||||
label: 🧱 Is this Proxmox host running arm64?
|
||||
description: "Run `dpkg --print-architecture` on your Proxmox host if unsure."
|
||||
options:
|
||||
- ""
|
||||
- "No"
|
||||
- "Yes"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: pve_major
|
||||
attributes:
|
||||
label: 📈 Which Proxmox VE release are you on?
|
||||
options:
|
||||
- "Proxmox VE 9"
|
||||
- "Proxmox VE 8"
|
||||
- "Proxmox VE 7 or older (end of life)"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: pve_version
|
||||
attributes:
|
||||
label: 📈 Which Proxmox version are you on?
|
||||
label: 🔢 Exact Proxmox version and kernel
|
||||
description: "Both matter — several issues turned out to be kernel-specific."
|
||||
placeholder: "run pveversion in your PVE node console"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
Generated
+3
@@ -14,6 +14,9 @@ Fixes #
|
||||
- [ ] **Tested thoroughly** – Changes work as expected.
|
||||
- [ ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues.
|
||||
|
||||
**Tested on:** <!-- e.g. PVE 9.2 / Debian 13 / fresh install + update. Write "not tested" if you could not run it. -->
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 🤖 AI Assistance (**X** in brackets)
|
||||
|
||||
@@ -540,6 +540,41 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-09-11
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- OneTimeSecret ([#17097](https://github.com/community-scripts/ProxmoxVE/pull/17097))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- passwordpusher: restore data before running migrations [@MickLesk](https://github.com/MickLesk) ([#17141](https://github.com/community-scripts/ProxmoxVE/pull/17141))
|
||||
- paperclip: install the rust toolchain needed by the runner build [@MickLesk](https://github.com/MickLesk) ([#17142](https://github.com/community-scripts/ProxmoxVE/pull/17142))
|
||||
- homepage: run next directly instead of through pnpm [@MickLesk](https://github.com/MickLesk) ([#17155](https://github.com/community-scripts/ProxmoxVE/pull/17155))
|
||||
- changedetection: fix: pin browserless [@CrazyWolf13](https://github.com/CrazyWolf13) ([#17163](https://github.com/community-scripts/ProxmoxVE/pull/17163))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- core.func: fall back to a usable HOME when the shell has none [@MickLesk](https://github.com/MickLesk) ([#17154](https://github.com/community-scripts/ProxmoxVE/pull/17154))
|
||||
|
||||
### 🧰 Tools
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- update-apps: rewrite the retired Gitea base in every container before updating it [@MickLesk](https://github.com/MickLesk) ([#17156](https://github.com/community-scripts/ProxmoxVE/pull/17156))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- Rename lxc-delete.sh to guest-delete.sh [@MickLesk](https://github.com/MickLesk) ([#17152](https://github.com/community-scripts/ProxmoxVE/pull/17152))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- issue template: add PVE release, execution context and phase; refresh distro list / pve versions [@MickLesk](https://github.com/MickLesk) ([#17160](https://github.com/community-scripts/ProxmoxVE/pull/17160))
|
||||
|
||||
## 2026-09-10
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
+6
-2
@@ -32,14 +32,18 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "Calibre-Web" "janeczku/calibre-web"; then
|
||||
if [[ -f /root/.calibre-web && ! -e /root/.calibreweb ]]; then
|
||||
mv /root/.calibre-web /root/.calibreweb
|
||||
fi
|
||||
|
||||
if check_for_gh_release "calibreweb" "janeczku/calibre-web"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop calibre-web
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /opt/calibre-web/data
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Calibre-Web" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "calibreweb" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||
setup_uv
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
|
||||
@@ -69,6 +69,7 @@ function update_script() {
|
||||
$STD git -C /opt/browserless/ reset --hard origin/main
|
||||
$STD npm update --prefix /opt/browserless
|
||||
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
||||
$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless
|
||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps
|
||||
# Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed.
|
||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
____ _______ _____ __
|
||||
/ __ \____ ___/_ __(_)___ ___ ___ / ___/___ _____________ / /_
|
||||
/ / / / __ \/ _ \/ / / / __ `__ \/ _ \\__ \/ _ \/ ___/ ___/ _ \/ __/
|
||||
/ /_/ / / / / __/ / / / / / / / / __/__/ / __/ /__/ / / __/ /_
|
||||
\____/_/ /_/\___/_/ /_/_/ /_/ /_/\___/____/\___/\___/_/ \___/\__/
|
||||
|
||||
@@ -83,6 +83,10 @@ EOF
|
||||
sed -i '/^ExecStart=/i Environment=CI=true' /etc/systemd/system/homepage.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
if grep -q '^ExecStart=pnpm start' /etc/systemd/system/homepage.service; then
|
||||
sed -i 's|^ExecStart=pnpm start$|ExecStart=/opt/homepage/node_modules/.bin/next start|' /etc/systemd/system/homepage.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
msg_ok "Updated Homepage"
|
||||
|
||||
msg_info "Starting service"
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
#!/usr/bin/env bash
|
||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Hai Tran (epiHATR)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://onetimesecret.com/ | Github: https://github.com/onetimesecret/onetimesecret
|
||||
|
||||
APP="OneTimeSecret"
|
||||
var_tags="${var_tags:-security;privacy;secrets}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-10}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-no}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
SSL_VALUE="${OTS_SSL:-}"
|
||||
if [[ -n "${SSL_VALUE}" ]]; then
|
||||
case "${SSL_VALUE,,}" in
|
||||
1 | true | yes | on) SSL_VALUE="true" ;;
|
||||
0 | false | no | off) SSL_VALUE="false" ;;
|
||||
*)
|
||||
msg_error "Invalid OTS_SSL value '${OTS_SSL}' (use true/false)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ ! -d /opt/onetimesecret ]] || [[ ! -f /opt/onetimesecret/.env ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "onetimesecret" "onetimesecret/onetimesecret"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop onetimesecret
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /opt/onetimesecret/.env
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "onetimesecret" "onetimesecret/onetimesecret" "tarball"
|
||||
RUBY_VERSION=$(tr -d ' \n' </opt/onetimesecret/.ruby-version 2>/dev/null)
|
||||
RUBY_VERSION="${RUBY_VERSION:-3.4.10}" setup_ruby
|
||||
|
||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"]*\)".*/\1/p' /opt/onetimesecret/package.json)
|
||||
NODE_VERSION=$(tr -d ' \n' </opt/onetimesecret/.nvmrc 2>/dev/null)
|
||||
NODE_VERSION="${NODE_VERSION:-25}" NODE_MODULE="pnpm@${PNPM_VERSION:-11.1.2}" setup_nodejs
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Reconciling Application"
|
||||
systemctl enable -q --now redis-server
|
||||
cd /opt/onetimesecret
|
||||
mkdir -p tmp/pids log
|
||||
$STD bash bin/setup reconcile
|
||||
msg_ok "Reconciled Application"
|
||||
|
||||
msg_info "Building Frontend"
|
||||
cd /opt/onetimesecret
|
||||
$STD pnpm run build
|
||||
msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start onetimesecret
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
DISPLAY_HOST="${OTS_HOST:-$IP}"
|
||||
case "${OTS_SSL:-false,,}" in
|
||||
1 | true | yes | on)
|
||||
DISPLAY_SCHEME="https"
|
||||
;;
|
||||
*)
|
||||
DISPLAY_SCHEME="http"
|
||||
;;
|
||||
esac
|
||||
|
||||
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 "${GATEWAY}${BGN}${DISPLAY_SCHEME}://${DISPLAY_HOST}${CL}"
|
||||
@@ -43,6 +43,8 @@ function update_script() {
|
||||
|
||||
restore_backup
|
||||
|
||||
setup_rust
|
||||
|
||||
msg_info "Rebuilding Paperclip"
|
||||
cd /opt/paperclip-ai
|
||||
export HUSKY=0
|
||||
|
||||
@@ -40,6 +40,9 @@ function update_script() {
|
||||
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
|
||||
|
||||
msg_info "Installing Gem Dependencies"
|
||||
@@ -62,8 +65,6 @@ function update_script() {
|
||||
RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1 $STD bundle exec rails assets:precompile
|
||||
msg_ok "Precompiled Assets"
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start passwordpusher
|
||||
msg_ok "Started Service"
|
||||
|
||||
@@ -32,7 +32,7 @@ msg_info "Installing Calibre (for eBook conversion)"
|
||||
$STD apt install -y calibre
|
||||
msg_ok "Installed Calibre"
|
||||
|
||||
fetch_and_deploy_gh_release "Calibre-Web" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||
fetch_and_deploy_gh_release "calibreweb" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||
setup_uv
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
|
||||
@@ -62,6 +62,7 @@ mkdir /opt/browserless
|
||||
$STD /opt/changedetection/.venv/bin/python -m pip install playwright
|
||||
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
||||
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
||||
$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless
|
||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null
|
||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null
|
||||
$STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null
|
||||
|
||||
@@ -64,7 +64,7 @@ RestartSec=1
|
||||
User=root
|
||||
WorkingDirectory=/opt/homepage/
|
||||
Environment=CI=true
|
||||
ExecStart=pnpm start
|
||||
ExecStart=/opt/homepage/node_modules/.bin/next start
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Hai Tran (epiHATR)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://onetimesecret.com/ | Github: https://github.com/onetimesecret/onetimesecret
|
||||
|
||||
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 \
|
||||
build-essential \
|
||||
git \
|
||||
libffi-dev \
|
||||
libgmp-dev \
|
||||
libpq-dev \
|
||||
libreadline-dev \
|
||||
libsodium23 \
|
||||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
libyaml-dev \
|
||||
nginx \
|
||||
pkg-config \
|
||||
python3 \
|
||||
redis-server \
|
||||
zlib1g-dev
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
fetch_and_deploy_gh_release "onetimesecret" "onetimesecret/onetimesecret" "tarball"
|
||||
|
||||
RUBY_VERSION=$(tr -d ' \n' </opt/onetimesecret/.ruby-version 2>/dev/null)
|
||||
RUBY_VERSION="${RUBY_VERSION:-3.4.10}" setup_ruby
|
||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"]*\)".*/\1/p' /opt/onetimesecret/package.json)
|
||||
NODE_VERSION=$(tr -d ' \n' </opt/onetimesecret/.nvmrc 2>/dev/null)
|
||||
NODE_VERSION="${NODE_VERSION:-25}" NODE_MODULE="pnpm@${PNPM_VERSION:-11.1.2}" setup_nodejs
|
||||
HOST_VALUE="${OTS_HOST:-$LOCAL_IP}"
|
||||
SSL_VALUE="${OTS_SSL:-false}"
|
||||
case "${SSL_VALUE,,}" in
|
||||
1 | true | yes | on) SSL_VALUE="true" ;;
|
||||
0 | false | no | off | "") SSL_VALUE="false" ;;
|
||||
*)
|
||||
msg_error "Invalid OTS_SSL value '${OTS_SSL}' (use true/false)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
msg_info "Configuring Application"
|
||||
systemctl enable -q --now redis-server
|
||||
cd /opt/onetimesecret
|
||||
$STD bash bin/setup init
|
||||
sed -i \
|
||||
-e "s|^REDIS_URL=.*|REDIS_URL=redis://127.0.0.1:6379/0|" \
|
||||
-e "s|^HOST=.*|HOST=${HOST_VALUE//&/\\&}|" \
|
||||
-e "s|^SSL=.*|SSL=${SSL_VALUE}|" \
|
||||
/opt/onetimesecret/.env
|
||||
if grep -q '^RACK_ENV=' /opt/onetimesecret/.env; then
|
||||
sed -i 's|^RACK_ENV=.*|RACK_ENV=production|' /opt/onetimesecret/.env
|
||||
else
|
||||
echo "RACK_ENV=production" >>/opt/onetimesecret/.env
|
||||
fi
|
||||
if grep -q '^AUTHENTICATION_MODE=' /opt/onetimesecret/.env; then
|
||||
sed -i 's|^AUTHENTICATION_MODE=.*|AUTHENTICATION_MODE=simple|' /opt/onetimesecret/.env
|
||||
else
|
||||
echo "AUTHENTICATION_MODE=simple" >>/opt/onetimesecret/.env
|
||||
fi
|
||||
if ! grep -q '^PORT=' /opt/onetimesecret/.env; then
|
||||
echo "PORT=3000" >>/opt/onetimesecret/.env
|
||||
fi
|
||||
chmod 600 /opt/onetimesecret/.env
|
||||
mkdir -p /opt/onetimesecret/tmp/pids /opt/onetimesecret/log
|
||||
msg_ok "Configured Application"
|
||||
|
||||
msg_info "Reconciling Application"
|
||||
cd /opt/onetimesecret
|
||||
$STD bash bin/setup reconcile
|
||||
msg_ok "Reconciled Application"
|
||||
|
||||
msg_info "Building Frontend"
|
||||
cd /opt/onetimesecret
|
||||
$STD pnpm run build
|
||||
msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<'EOF' >/etc/systemd/system/onetimesecret.service
|
||||
[Unit]
|
||||
Description=Onetime Secret Service
|
||||
After=network.target redis-server.service
|
||||
Requires=redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/onetimesecret
|
||||
Environment=HOME=/root
|
||||
Environment=PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
EnvironmentFile=/opt/onetimesecret/.env
|
||||
ExecStart=/root/.rbenv/shims/bundle exec puma -C etc/puma.rb
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now onetimesecret
|
||||
msg_ok "Created Service"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
cat <<'EOF' >/etc/nginx/sites-available/onetimesecret
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
EOF
|
||||
nginx_enable_site onetimesecret
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -23,6 +23,7 @@ msg_ok "Installed Dependencies"
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="paperclip" PG_DB_USER="paperclip" setup_postgresql_db
|
||||
setup_rust
|
||||
|
||||
fetch_and_deploy_gh_release "paperclip-ai" "paperclipai/paperclip" "tarball"
|
||||
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
|
||||
_CORE_FUNC_LOADED=1
|
||||
|
||||
if [[ -z "${HOME:-}" ]]; then
|
||||
HOME="$(getent passwd "$(id -u)" 2>/dev/null | cut -d: -f6)"
|
||||
export HOME="${HOME:-/root}"
|
||||
fi
|
||||
|
||||
# ==============================================================================
|
||||
# SECTION 1: INITIALIZATION & SETUP
|
||||
# ==============================================================================
|
||||
|
||||
@@ -40,7 +40,7 @@ CM="${TAB}✔️${TAB}${CL}"
|
||||
|
||||
# Telemetry
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
|
||||
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "lxc-delete" "pve"
|
||||
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "guest-delete" "pve"
|
||||
|
||||
GUEST_LOG=$(mktemp)
|
||||
trap 'rm -f "$GUEST_LOG"' EXIT
|
||||
@@ -178,6 +178,24 @@ function resolve_service_script() {
|
||||
return 1
|
||||
}
|
||||
|
||||
# The retired Gitea mirror. The old entrypoint pulls ct/<app>.sh straight from
|
||||
# it and never reaches the update helper that would repair itself, so rewrite it
|
||||
# here. Only host and /raw/<kind>/ change; owner, repo and ref are kept.
|
||||
function repair_update_url() {
|
||||
local container="$1"
|
||||
pct exec "$container" -- sh -c '
|
||||
[ -f /usr/bin/update ] || exit 1
|
||||
grep -q git.community-scripts.org /usr/bin/update || exit 1
|
||||
sed -i \
|
||||
-e "s|https://git[.]community-scripts[.]org/|https://raw.githubusercontent.com/|g" \
|
||||
-e "s|/raw/branch/|/|g" -e "s|/raw/tag/|/|g" -e "s|/raw/commit/|/|g" \
|
||||
/usr/bin/update
|
||||
' >/dev/null 2>&1 || return 1
|
||||
|
||||
echo -e "${BL}[INFO]${CL} Repaired update URL (Gitea -> GitHub) in container $container"
|
||||
log_write "Container $container: rewrote the retired Gitea base in /usr/bin/update"
|
||||
}
|
||||
|
||||
function detect_service() {
|
||||
local container="$1"
|
||||
local tmpdir update_file
|
||||
@@ -489,6 +507,9 @@ for container in $CHOICE; do
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
#0.5) Rewrite a retired Gitea base before anything reads it.
|
||||
repair_update_url "$container"
|
||||
|
||||
#1) Detect service using the service name in the update command
|
||||
detect_service $container
|
||||
|
||||
|
||||
Reference in New Issue
Block a user