lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

flarum: fix installation and migration logic (#341340)

authored by

kirillrdy and committed by
GitHub
51b7b3bd 9a7a4e2d

+6 -3
+6 -3
nixos/modules/services/web-apps/flarum.nix
··· 203 203 ln -sf ${cfg.package}/share/php/flarum/public/index.php public/ 204 204 '' + optionalString (cfg.createDatabaseLocally && cfg.database.driver == "mysql") '' 205 205 if [ ! -f config.php ]; then 206 - php flarum install --file=${flarumInstallConfig} 206 + php flarum install --file=${flarumInstallConfig} 207 + fi 208 + '' + '' 209 + if [ -f config.php ]; then 210 + php flarum migrate 211 + php flarum cache:clear 207 212 fi 208 - php flarum migrate 209 - php flarum cache:clear 210 213 ''; 211 214 }; 212 215 };