summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-31 20:50:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-31 20:50:52 +0000
commit665bba753440570b3911b5538554f175aced3661 (patch)
tree98746112b540e256b139104d7c3f0a7267597316
parent8d136ee2fc6f5f581c48303bc2af3b0ccf0a9a31 (diff)
downloadpfsense-665bba753440570b3911b5538554f175aced3661.zip
pfsense-665bba753440570b3911b5538554f175aced3661.tar.gz
* Ignore /var/run during backups
* Exec restart commands in background
-rw-r--r--etc/phpshellsessions/cvssync6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 3ed6a84..52d9e9b 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -95,7 +95,7 @@ if($branch == "RESTORE") {
}
echo "===> Backing up current pfSense information... Please wait...\n";
-exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /tmp /");
+exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /tmp --execlude /var/run /");
exec("ls -lah /root/cvssync_backup.tgz");
echo "===> Checking out $branch\n";
@@ -158,7 +158,5 @@ function post_cvssync_commands() {
echo "\n";
- touch("/tmp/restart_webgui");
-
- exec("killall php");
+ exec("sleep 5 ; killall php ; touch /tmp/restart_webgui &");
}
OpenPOWER on IntegriCloud