mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 17:35:55 +01:00
* bump(node): Node 22 to 24 for Tier 1 projects Bump Node.js from 22 to 24 in install and ct update scripts for projects where upstream already uses Node 24 in their Dockerfile/package.json: - Cross-seed (engines >=24, Dockerfile node:24-alpine) - Matterbridge (engines >=24.0.0, Dockerfile node:24-trixie-slim) - Manyfold (volta.node 24.13.0) - Pangolin (Dockerfile node:24-alpine) - ROMM (engines 24, nvm install 24) - SnowShare (Dockerfile node:24-alpine) - Verdaccio (engines >=18, Dockerfile node:24-alpine) Also adds missing NODE_VERSION setup_nodejs calls to ct update scripts for cross-seed, pangolin, romm, snowshare, and manyfold. * formatting * fix: pin NODE_VERSION for nodecast-tv and wealthfolio nodecast-tv: NODE_VERSION=20 (upstream Dockerfile uses nodesource/setup_20.x) wealthfolio: NODE_VERSION=20 (upstream Dockerfile uses node:20-alpine) * ci: add weekly Node.js version drift check workflow Scans all install scripts using setup_nodejs, fetches upstream package.json (engines.node) and Dockerfile (FROM node:XX), compares with our NODE_VERSION and opens/updates a GitHub issue on mismatch. Runs weekly on Monday at 06:00 UTC. * remove wf - seperate branch
71 lines
2.0 KiB
Bash
71 lines
2.0 KiB
Bash
#!/usr/bin/env bash
|
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: TuroYT
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://github.com/TuroYT/snowshare
|
|
|
|
APP="SnowShare"
|
|
var_tags="${var_tags:-file-sharing}"
|
|
var_cpu="${var_cpu:-2}"
|
|
var_ram="${var_ram:-2048}"
|
|
var_disk="${var_disk:-20}"
|
|
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 [[ ! -d /opt/snowshare ]]; then
|
|
msg_error "No ${APP} Installation Found!"
|
|
exit
|
|
fi
|
|
|
|
NODE_VERSION="24" setup_nodejs
|
|
|
|
if check_for_gh_release "snowshare" "TuroYT/snowshare"; then
|
|
msg_info "Stopping Service"
|
|
systemctl stop snowshare
|
|
msg_ok "Stopped Service"
|
|
|
|
msg_info "Backing up uploads"
|
|
[ -d /opt/snowshare/uploads ] && cp -a /opt/snowshare/uploads /opt/.snowshare_uploads_backup
|
|
msg_ok "Uploads backed up"
|
|
|
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "snowshare" "TuroYT/snowshare" "tarball"
|
|
|
|
msg_info "Restoring uploads"
|
|
[ -d /opt/.snowshare_uploads_backup ] && rm -rf /opt/snowshare/uploads && cp -a /opt/.snowshare_uploads_backup /opt/snowshare/uploads
|
|
msg_ok "Uploads restored"
|
|
|
|
msg_info "Updating Snowshare"
|
|
cd /opt/snowshare
|
|
$STD npm ci
|
|
$STD npx prisma generate
|
|
$STD npm run build
|
|
msg_ok "Updated Snowshare"
|
|
|
|
msg_info "Starting Service"
|
|
systemctl start snowshare
|
|
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}"
|