summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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