Project

General

Profile

« Previous | Next » 

Revision 3e20b9ca

Added by Phil Davis over 8 years ago

Fix var/empty operation not permitted

View differences:

src/etc/pfSense-rc
228 228

  
229 229
# make some directories in /var
230 230
/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
231

  
232
# turn off the immutable flag, set /var/empty to read-only, make it immutable again
233
chflags noschg /var/empty
231 234
chmod 0555 /var/empty
235
chflags schg /var/empty
236

  
232 237
/bin/rm -rf $varrunpath/*
233 238

  
234 239
# Cleanup configuration files from previous instance

Also available in: Unified diff