3
0
Fork 0
forked from mirrors/nixpkgs

folders of pidFile and uriFile should be writable by couchdb user/group

This commit is contained in:
Rok Garbas 2014-01-18 19:38:13 +00:00 committed by Domen Kožar
parent 55cff93f04
commit 0bebcd7d1f

View file

@ -167,7 +167,6 @@ in
fi
if ! test -e ${cfg.uriFile}; then
mkdir -p `dirname ${cfg.uriFile}`;
touch ${cfg.uriFile};
fi
if ! test -e ${cfg.logFile}; then
mkdir -p `dirname ${cfg.logFile}`;
@ -183,8 +182,8 @@ in
if ! test -e ${cfg.viewIndexDir}; then
mkdir -p ${cfg.viewIndexDir};
fi
chown ${cfg.user}:${cfg.group} ${cfg.pidFile}
chown ${cfg.user}:${cfg.group} ${cfg.uriFile}
chown ${cfg.user}:${cfg.group} `dirname ${cfg.pidFile}`
chown ${cfg.user}:${cfg.group} `dirname ${cfg.uriFile}`
chown ${cfg.user}:${cfg.group} ${cfg.logFile}
chown ${cfg.user}:${cfg.group} ${cfg.customConfigFile}
chown ${cfg.user}:${cfg.group} ${cfg.databaseDir}