diff options
author | Linus Heckemann <git@sphalerite.org> | 2023-10-28 10:17:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 10:17:15 +0200 |
commit | 86707945659e730bc7af48969d0898a765ee4c05 (patch) | |
tree | b41cdb205107c50ab64e1148d9383540dcf79f0e /nixos/modules/services/web-apps | |
parent | 0643b928c86e6f8e1786ad2ffb666331a42add51 (diff) | |
parent | d300940637a74421b78d3e94b25daf35f1b9ec9d (diff) | |
download | nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar.gz nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar.bz2 nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar.lz nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar.xz nixlib-86707945659e730bc7af48969d0898a765ee4c05.tar.zst nixlib-86707945659e730bc7af48969d0898a765ee4c05.zip |
Merge pull request #263203 from nikstur/replace-activation
Replace simple activationScripts
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/mattermost.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix index 66e5f1695a15..24f3b3331845 100644 --- a/nixos/modules/services/web-apps/mattermost.nix +++ b/nixos/modules/services/web-apps/mattermost.nix @@ -287,9 +287,9 @@ in # The systemd service will fail to execute the preStart hook # if the WorkingDirectory does not exist - system.activationScripts.mattermost = '' - mkdir -p "${cfg.statePath}" - ''; + systemd.tmpfiles.rules = [ + ''d "${cfg.statePath}" -'' + ]; systemd.services.mattermost = { description = "Mattermost chat service"; |