revert "set permission for /var/cache if it did not exist before" and make lighttpd start work

Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
This commit is contained in:
pvogt09 2020-05-07 23:34:03 +02:00
parent 45fe918516
commit e82b136b8a
3 changed files with 46 additions and 15 deletions

View file

@ -1431,13 +1431,7 @@ installConfigs() {
# Make the directories if they do not exist and set the owners
mkdir -p /run/lighttpd
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /run/lighttpd
test -d /var/cache
local varcache=$?
mkdir -p /var/cache/lighttpd/compress
if [[ ! "${varcache}" -eq 0 ]]; then
chmod a+rx /var/cache
fi
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /var/cache/lighttpd
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /var/cache/lighttpd/compress
mkdir -p /var/cache/lighttpd/uploads
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /var/cache/lighttpd/uploads