mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-22 15:06:25 +01:00
Apply standalone mode optimization to Jotty update script
- Use standalone mode in update_script function - Ensures updates maintain the optimized deployment structure - Consistent with install script changes
This commit is contained in:
11
ct/jotty.sh
11
ct/jotty.sh
@ -48,6 +48,17 @@ function update_script() {
|
|||||||
$STD yarn --frozen-lockfile
|
$STD yarn --frozen-lockfile
|
||||||
$STD yarn next telemetry disable
|
$STD yarn next telemetry disable
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
|
||||||
|
[ -d "public" ] && cp -r public .next/standalone/
|
||||||
|
[ -d "howto" ] && cp -r howto .next/standalone/
|
||||||
|
mkdir -p .next/standalone/.next
|
||||||
|
cp -r .next/static .next/standalone/.next/
|
||||||
|
|
||||||
|
mv .next/standalone /tmp/jotty_standalone
|
||||||
|
rm -rf * .next .git .gitignore .yarn
|
||||||
|
mv /tmp/jotty_standalone/* .
|
||||||
|
mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true
|
||||||
|
rm -rf /tmp/jotty_standalone
|
||||||
msg_ok "Updated jotty"
|
msg_ok "Updated jotty"
|
||||||
|
|
||||||
msg_info "Restoring configuration & data"
|
msg_info "Restoring configuration & data"
|
||||||
|
|||||||
Reference in New Issue
Block a user