mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-31 04:54:43 +00:00
fix(reactive-resume): update for v5.1.4 compatibility
- Replace obsolete PRINTER_ENDPOINT with ENCRYPTION_SECRET in .env (PDF generation moved client-side in v5.1.0; AI providers require ENCRYPTION_SECRET since v5.1.4) - Add commented REDIS_URL for the new AI Agent workspace (optional) - Inject ENCRYPTION_SECRET into existing installs on update if missing
This commit is contained in:
@@ -54,6 +54,11 @@ function update_script() {
|
||||
rm -rf /tmp/rr-runtime
|
||||
msg_ok "Deployed Nitro Runtime Externals"
|
||||
mv /opt/reactive-resume.env.bak /opt/reactive-resume/.env
|
||||
# Inject ENCRYPTION_SECRET if missing (required for AI providers since v5.1.4)
|
||||
if ! grep -q '^ENCRYPTION_SECRET=' /opt/reactive-resume/.env; then
|
||||
ENCRYPTION_SECRET=$(openssl rand -hex 32)
|
||||
echo "ENCRYPTION_SECRET=${ENCRYPTION_SECRET}" >> /opt/reactive-resume/.env
|
||||
fi
|
||||
msg_ok "Updated Reactive Resume"
|
||||
|
||||
msg_info "Updating Service"
|
||||
|
||||
Reference in New Issue
Block a user