Skip to content

Commit

Permalink
flarum: fix installation and migration logic
Browse files Browse the repository at this point in the history
(cherry picked from commit 317a52a)
  • Loading branch information
fsagbuya authored and github-actions[bot] committed Sep 16, 2024
1 parent 086b448 commit 6b25604
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 6b25604

Please sign in to comment.