mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
flarum: fix flarum directory permissions
(cherry picked from commit 249dacfaa8
)
This commit is contained in:
parent
7d773b7e37
commit
0e59203469
@ -116,6 +116,7 @@ in {
|
||||
isSystemUser = true;
|
||||
home = cfg.stateDir;
|
||||
createHome = true;
|
||||
homeMode = "755";
|
||||
group = cfg.group;
|
||||
};
|
||||
users.groups.${cfg.group} = {};
|
||||
@ -194,8 +195,6 @@ in {
|
||||
cp -f ${cfg.package}/share/php/flarum/{extend.php,site.php,flarum} .
|
||||
ln -sf ${cfg.package}/share/php/flarum/vendor .
|
||||
ln -sf ${cfg.package}/share/php/flarum/public/index.php public/
|
||||
chmod a+x . public
|
||||
chmod +x site.php extend.php flarum
|
||||
'' + optionalString (cfg.createDatabaseLocally && cfg.database.driver == "mysql") ''
|
||||
if [ ! -f config.php ]; then
|
||||
php flarum install --file=${flarumInstallConfig}
|
||||
|
Loading…
Reference in New Issue
Block a user