Fix var/empty operation not permitted

This commit is contained in:
Phil Davis 2017-04-19 09:19:15 +05:45
parent 2f20d4dc58
commit 3e20b9ca7b
No known key found for this signature in database
GPG Key ID: 340A5689A513CA23

View File

@ -228,7 +228,12 @@ SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
# make some directories in /var
/bin/mkdir -p $varrunpath /var/log /var/etc /var/db/entropy /var/db/rrd /var/at/jobs/ /var/empty /var/log/nginx 2>/dev/null
# turn off the immutable flag, set /var/empty to read-only, make it immutable again
chflags noschg /var/empty
chmod 0555 /var/empty
chflags schg /var/empty
/bin/rm -rf $varrunpath/*
# Cleanup configuration files from previous instance