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