mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-27 17:50:15 +00:00
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:
parent
45fe918516
commit
e82b136b8a
3 changed files with 46 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue