diff options
author | tv <tv@shackspace.de> | 2015-07-13 15:11:18 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-13 15:11:18 +0200 |
commit | baab714b2ef8243d3160265062dd6e8c84e45ee3 (patch) | |
tree | a1ab6bfcb6cd094146a4dc09cdd45f3133c75d9c /nixos/modules/services/networking/charybdis.nix | |
parent | 45e07f5503d90bf79bdd287f3e320a887cf0890f (diff) |
charybdis service: fix preStart script
Diffstat (limited to 'nixos/modules/services/networking/charybdis.nix')
-rw-r--r-- | nixos/modules/services/networking/charybdis.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/charybdis.nix b/nixos/modules/services/networking/charybdis.nix index 91729ebd60a5..2f7d006b8816 100644 --- a/nixos/modules/services/networking/charybdis.nix +++ b/nixos/modules/services/networking/charybdis.nix @@ -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} ''; }; |