Merge pull request #9150 from tomberek/gateone_setup

gateone: Fix startup
This commit is contained in:
lethalman 2015-08-08 15:35:08 +02:00
commit 076e90c67a

View file

@ -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
'';