Fix login flow after rollback

This commit is contained in:
adminsopel
2026-05-01 10:13:50 +02:00
parent 96e1fb2a4e
commit 096bd5976b
9 changed files with 22 additions and 759 deletions

View File

@@ -1,22 +1,13 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/_common.sh"
app="${YNH_APP_INSTANCE_NAME:-albumik}"
source ./_common.sh
systemctl stop "$app" 2>/dev/null || true
mkdir -p "$install_dir"
rm -rf "$install_dir/backend" "$install_dir/web" "$install_dir/doc"
cp -a "$YNH_APP_BASEDIR/backend" "$YNH_APP_BASEDIR/web" "$YNH_APP_BASEDIR/doc" "$install_dir"/
cp -a backend web doc "$install_dir"/
chown -R "$app:$app" "$install_dir"
systemctl daemon-reload
systemctl restart "$app"
nginx -t
systemctl reload nginx
systemctl start "$app"
systemctl reload nginx || true
echo "Albumik upgraded"