fix: flame v4

This commit is contained in:
CrazyWolf13
2026-05-11 15:28:54 +02:00
parent 7b63a740e4
commit 666005c4a4
2 changed files with 3 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ function update_script() {
msg_info "Restoring Data"
cp -r /opt/flame_data_backup/. /opt/flame/data
cp /opt/flame.env.bak /opt/flame/.env
sed -i "s/^VERSION=.*/VERSION=$(cat ~/.flame)/" /opt/flame/.env
rm -rf /opt/flame_data_backup /opt/flame.env.bak
msg_ok "Restored Data"

View File

@@ -32,8 +32,10 @@ $STD npm install --production
$STD npm run build
cd /opt/flame
cp -r client/build/. public/
FLAME_VERSION=$(cat ~/.flame)
cat <<EOF >/opt/flame/.env
NODE_ENV=production
VERSION=${FLAME_VERSION}
PASSWORD=
EOF
msg_ok "Set up Flame"