summaryrefslogtreecommitdiffstats
path: root/usr/local/www/restart_httpd.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-13 03:12:27 +0000
committerBill Marquette <billm@pfsense.org>2005-09-13 03:12:27 +0000
commitfd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f (patch)
treeddc61e14bb4057aefd1fc27e08b231a0e78a818b /usr/local/www/restart_httpd.php
parent3d0d1aa84e2bbecc028ec15c6f5bfff5bc8663c0 (diff)
downloadpfsense-fd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f.zip
pfsense-fd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f.tar.gz
recursively chmod
mount r/w before chmod'ing
Diffstat (limited to 'usr/local/www/restart_httpd.php')
-rwxr-xr-xusr/local/www/restart_httpd.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/restart_httpd.php b/usr/local/www/restart_httpd.php
index 39a7e91..70a0f03 100755
--- a/usr/local/www/restart_httpd.php
+++ b/usr/local/www/restart_httpd.php
@@ -39,8 +39,14 @@ include("head.inc");
<p class="pgtitle"><?php echo $pgtitle; ?></p>
+Mounting file systems read/write...
+<?php flush(); sleep(1); conf_mount_rw(); ?>
+Done.<br>
Forcing all PHP file permissions to 0755...
-<?php flush(); sleep(1); system('chmod 0755 /usr/local/www/*.php'); ?>
+<?php flush(); sleep(1); system('chmod -R 0755 /usr/local/www/*.php'); ?>
+Done.<br>
+Mounting file systems read only...
+<?php flush(); sleep(1); conf_mount_ro(); ?>
Done.<br>
Restarting mini_httpd...
<?php flush(); sleep(1); system_webgui_start(); ?>
OpenPOWER on IntegriCloud