mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/zigbee2mqtt: set StateDirectory
So that the directory is guaranteed to exist at service startup. This fixes the scenario where the service is stopped, the state directory removed and the service started again (for testing / starting fresh). Set StateDirectoryMode to match the existing directory permissions.
This commit is contained in:
parent
ef773b2824
commit
92ea914782
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ in
|
|||
User = "zigbee2mqtt";
|
||||
Group = "zigbee2mqtt";
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
StateDirectory = "zigbee2mqtt";
|
||||
StateDirectoryMode = "0700";
|
||||
Restart = "on-failure";
|
||||
|
||||
# Hardening
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue