Merge pull request #8798 from 4z3/charybdis
charybdis service: fix preStart script
This commit is contained in:
commit
5d78bb1ca2
1 changed files with 2 additions and 4 deletions
|
@ -85,10 +85,8 @@ in
|
||||||
PermissionsStartOnly = true; # preStart needs to run with root permissions
|
PermissionsStartOnly = true; # preStart needs to run with root permissions
|
||||||
};
|
};
|
||||||
preStart = ''
|
preStart = ''
|
||||||
if ! test -d /var/lib/charybdis; then
|
${coreutils}/bin/mkdir -p ${cfg.statedir}
|
||||||
${coreutils}/bin/mkdir -p ${cfg.statedir}
|
${coreutils}/bin/chown ${cfg.user}:${cfg.group} ${cfg.statedir}
|
||||||
${coreutils}/bin/chown ${cfg.user}:${cfg.group} ${cfg.statedir}
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue