mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix var/empty operation not permitted
This commit is contained in:
parent
2f20d4dc58
commit
3e20b9ca7b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user