From 825b8403a258106d8e0c5894b3558c01b915979a Mon Sep 17 00:00:00 2001 From: Thomas Bereknyei Date: Fri, 7 Aug 2015 00:43:29 -0400 Subject: [PATCH] Check for pidDir and create --- nixos/modules/services/networking/gateone.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/gateone.nix b/nixos/modules/services/networking/gateone.nix index b8ae5490d7ba..93273837181e 100644 --- a/nixos/modules/services/networking/gateone.nix +++ b/nixos/modules/services/networking/gateone.nix @@ -36,8 +36,10 @@ config = mkIf cfg.enable { preStart = '' if [ ! -d ${cfg.settingsDir} ] ; then mkdir -m 0750 -p ${cfg.settingsDir} - mkdir -m 0750 -p ${cfg.pidDir} chown -R gateone.gateone ${cfg.settingsDir} + fi + if [ ! -d ${cfg.pidDir} ] ; then + mkdir -m 0750 -p ${cfg.pidDir} chown -R gateone.gateone ${cfg.pidDir} fi '';