Skip to content

Commit

Permalink
flarum: fix installation and migration logic (#341340)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillrdy authored Sep 16, 2024
2 parents 9a7a4e2 + 317a52a commit 51b7b3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/modules/services/web-apps/flarum.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,13 @@ in {
ln -sf ${cfg.package}/share/php/flarum/public/index.php public/
'' + optionalString (cfg.createDatabaseLocally && cfg.database.driver == "mysql") ''
if [ ! -f config.php ]; then
php flarum install --file=${flarumInstallConfig}
php flarum install --file=${flarumInstallConfig}
fi
'' + ''
if [ -f config.php ]; then
php flarum migrate
php flarum cache:clear
fi
php flarum migrate
php flarum cache:clear
'';
};
};
Expand Down

0 comments on commit 51b7b3b

Please sign in to comment.