fix: homarr db migration (#2575)

* Update homarr.sh

* Update homarr-install.sh
This commit is contained in:
Tobias 2025-02-24 08:23:54 +01:00 committed by GitHub
parent 6daeb7e288
commit 4aabbefcc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 0 deletions

View file

@ -86,6 +86,9 @@ msg_ok "Finished copying"
msg_info "Creating Services"
cat <<'EOF' >/opt/run_homarr.sh
#!/bin/bash
set -a
source /opt/homarr/.env
set +a
export DB_DIALECT='sqlite'
export AUTH_SECRET=$(openssl rand -base64 32)
node /opt/homarr_db/migrations/$DB_DIALECT/migrate.cjs /opt/homarr_db/migrations/$DB_DIALECT