Check for pidDir and create

This commit is contained in:
Thomas Bereknyei 2015-08-07 00:43:29 -04:00
parent bbe4307715
commit 825b8403a2

View File

@ -36,8 +36,10 @@ config = mkIf cfg.enable {
preStart = '' preStart = ''
if [ ! -d ${cfg.settingsDir} ] ; then if [ ! -d ${cfg.settingsDir} ] ; then
mkdir -m 0750 -p ${cfg.settingsDir} mkdir -m 0750 -p ${cfg.settingsDir}
mkdir -m 0750 -p ${cfg.pidDir}
chown -R gateone.gateone ${cfg.settingsDir} chown -R gateone.gateone ${cfg.settingsDir}
fi
if [ ! -d ${cfg.pidDir} ] ; then
mkdir -m 0750 -p ${cfg.pidDir}
chown -R gateone.gateone ${cfg.pidDir} chown -R gateone.gateone ${cfg.pidDir}
fi fi
''; '';