plant-it: re-add JWT_SECRET (#11098)

Add JWT_SECRET generation and create server.env file.

Removed in this PR: https://github.com/community-scripts/ProxmoxVE/pull/10259
This commit is contained in:
CanbiZ (MickLesk)
2026-01-23 21:23:49 +01:00
committed by GitHub
parent 1293ed8c1f
commit 22e8c5bce7

View File

@@ -26,6 +26,7 @@ USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/pl
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz"
msg_info "Configured Plant-it"
JWT_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
mkdir -p /opt/plant-it-data
cat <<EOF >/opt/plant-it/backend/server.env
MYSQL_HOST=localhost