mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-01 13:19:35 +02:00
Compare commits
1 Commits
main
...
fix/firesh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03a94aff8e |
@@ -476,9 +476,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
- kan: extend fetch_and_deploy_gh_tag to use 'latest' tag [@MickLesk](https://github.com/MickLesk) ([#14853](https://github.com/community-scripts/ProxmoxVE/pull/14853))
|
|
||||||
- Glance: preserve glance.yml across updates [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14845](https://github.com/community-scripts/ProxmoxVE/pull/14845))
|
|
||||||
- NginxProxymanager: set Certbot version in npm.service environment variable (2.15.0) [@MickLesk](https://github.com/MickLesk) ([#14843](https://github.com/community-scripts/ProxmoxVE/pull/14843))
|
|
||||||
- [FileFlows] Fix service handling by using systemctl --all with quoted glob [@adrianmusante](https://github.com/adrianmusante) ([#14838](https://github.com/community-scripts/ProxmoxVE/pull/14838))
|
- [FileFlows] Fix service handling by using systemctl --all with quoted glob [@adrianmusante](https://github.com/adrianmusante) ([#14838](https://github.com/community-scripts/ProxmoxVE/pull/14838))
|
||||||
|
|
||||||
## 2026-05-31
|
## 2026-05-31
|
||||||
|
|||||||
@@ -53,6 +53,12 @@ function update_script() {
|
|||||||
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
||||||
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
||||||
$STD uv run flask db upgrade
|
$STD uv run flask db upgrade
|
||||||
|
|
||||||
|
msg_info "Building Fireshare Client"
|
||||||
|
cd /opt/fireshare/app/client
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
msg_ok "Built Fireshare Client"
|
||||||
msg_ok "Updated Fireshare"
|
msg_ok "Updated Fireshare"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
12
ct/glance.sh
12
ct/glance.sh
@@ -34,20 +34,8 @@ function update_script() {
|
|||||||
systemctl stop glance
|
systemctl stop glance
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
if [[ -f /opt/glance/glance.yml ]]; then
|
|
||||||
msg_info "Backing up glance.yml"
|
|
||||||
cp /opt/glance/glance.yml /tmp/glance.yml.bak
|
|
||||||
msg_ok "Backed up glance.yml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-amd64.tar.gz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-amd64.tar.gz"
|
||||||
|
|
||||||
if [[ -f /tmp/glance.yml.bak ]]; then
|
|
||||||
msg_info "Restoring glance.yml"
|
|
||||||
mv /tmp/glance.yml.bak /opt/glance/glance.yml
|
|
||||||
msg_ok "Restored glance.yml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start glance
|
systemctl start glance
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function update_script() {
|
|||||||
cp /opt/kan/.env /opt/kan.env.bak
|
cp /opt/kan/.env /opt/kan.env.bak
|
||||||
msg_ok "Backed up Data"
|
msg_ok "Backed up Data"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "tarball"
|
||||||
|
|
||||||
msg_info "Restoring Configuration"
|
msg_info "Restoring Configuration"
|
||||||
cp /opt/kan.env.bak /opt/kan/.env
|
cp /opt/kan.env.bak /opt/kan/.env
|
||||||
@@ -49,10 +49,8 @@ function update_script() {
|
|||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
cd /opt/kan
|
cd /opt/kan
|
||||||
set -a && source /opt/kan/.env && set +a
|
set -a && source /opt/kan/.env && set +a
|
||||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true
|
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true CI=true
|
||||||
$STD pnpm install --ignore-scripts
|
$STD pnpm install
|
||||||
export CI=true
|
|
||||||
sed -i 's|"@kan/tsconfig/internal-package.json"|"../../tooling/typescript/internal-package.json"|g' /opt/kan/packages/logger/tsconfig.json
|
|
||||||
$STD pnpm build --filter=@kan/web
|
$STD pnpm build --filter=@kan/web
|
||||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||||
msg_ok "Built Application"
|
msg_ok "Built Application"
|
||||||
|
|||||||
@@ -216,12 +216,6 @@ EOF
|
|||||||
msg_ok "Initialized Backend"
|
msg_ok "Initialized Backend"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
CERTBOT_VER=$(/opt/certbot/bin/certbot --version 2>&1 | awk '{print $NF}')
|
|
||||||
if grep -q "Environment=CERTBOT_VERSION" /lib/systemd/system/npm.service; then
|
|
||||||
sed -i "s|Environment=CERTBOT_VERSION=.*|Environment=CERTBOT_VERSION=${CERTBOT_VER}|" /lib/systemd/system/npm.service
|
|
||||||
else
|
|
||||||
sed -i "/Environment=NODE_ENV=production/a Environment=CERTBOT_VERSION=${CERTBOT_VER}" /lib/systemd/system/npm.service
|
|
||||||
fi
|
|
||||||
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
|
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
|
||||||
sed -r -i 's/^([[:space:]]*)su npm npm/\1#su npm npm/g;' /etc/logrotate.d/nginx-proxy-manager
|
sed -r -i 's/^([[:space:]]*)su npm npm/\1#su npm npm/g;' /etc/logrotate.d/nginx-proxy-manager
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ PG_VERSION="16" setup_postgresql
|
|||||||
PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db
|
PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db
|
||||||
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
|
fetch_and_deploy_gh_tag "kan" "kanbn/kan" "tarball"
|
||||||
|
|
||||||
msg_info "Configuring Application"
|
msg_info "Configuring Application"
|
||||||
AUTH_SECRET=$(openssl rand -base64 32)
|
AUTH_SECRET=$(openssl rand -base64 32)
|
||||||
@@ -45,9 +45,8 @@ msg_info "Building Application"
|
|||||||
cd /opt/kan
|
cd /opt/kan
|
||||||
set -a && source /opt/kan/.env && set +a
|
set -a && source /opt/kan/.env && set +a
|
||||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
||||||
$STD pnpm install --ignore-scripts
|
|
||||||
export CI=true
|
export CI=true
|
||||||
sed -i 's|"@kan/tsconfig/internal-package.json"|"../../tooling/typescript/internal-package.json"|g' /opt/kan/packages/logger/tsconfig.json
|
$STD pnpm install
|
||||||
$STD pnpm build --filter=@kan/web
|
$STD pnpm build --filter=@kan/web
|
||||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||||
msg_ok "Built Application"
|
msg_ok "Built Application"
|
||||||
|
|||||||
@@ -160,8 +160,7 @@ $STD yarn install --network-timeout 600000
|
|||||||
msg_ok "Initialized Backend"
|
msg_ok "Initialized Backend"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
CERTBOT_VER=$(/opt/certbot/bin/certbot --version 2>&1 | awk '{print $NF}')
|
cat <<'EOF' >/lib/systemd/system/npm.service
|
||||||
cat <<EOF >/lib/systemd/system/npm.service
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Nginx Proxy Manager
|
Description=Nginx Proxy Manager
|
||||||
After=network.target
|
After=network.target
|
||||||
@@ -170,7 +169,6 @@ Wants=openresty.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Environment=CERTBOT_VERSION=${CERTBOT_VER}
|
|
||||||
ExecStartPre=-mkdir -p /tmp/nginx/body /data/letsencrypt-acme-challenge
|
ExecStartPre=-mkdir -p /tmp/nginx/body /data/letsencrypt-acme-challenge
|
||||||
ExecStart=/usr/bin/node index.js --abort_on_uncaught_exception --max_old_space_size=250
|
ExecStart=/usr/bin/node index.js --abort_on_uncaught_exception --max_old_space_size=250
|
||||||
WorkingDirectory=/app
|
WorkingDirectory=/app
|
||||||
|
|||||||
Reference in New Issue
Block a user