summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-23 23:07:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-23 23:07:46 +0000
commitc4110081ca4be29d45a063ca8ddd27e80de96bbb (patch)
treeb3fac3c3484ff131deb496ee6eaab2b00eab99c2 /etc/phpshellsessions
parenteefa2b49b0225384835e540201c5db44d487f7b0 (diff)
downloadpfsense-c4110081ca4be29d45a063ca8ddd27e80de96bbb.zip
pfsense-c4110081ca4be29d45a063ca8ddd27e80de96bbb.tar.gz
Show rule differences (rules.debug) after a sync. Handy if you have
changed filter.inc.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/cvssync7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 4a2b3b9..415db71 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -8,6 +8,9 @@ echo "===> cvssync is starting at " . exec(date) . "\n";
conf_mount_rw();
+echo "===> Backing up original rules.debug\n";
+exec("cp /conf/config.xml /tmp/rules.beforecvssync");
+
if(is_dir("/home/pfsense")) {
echo "\nRelocating downloaded cvssync data, please wait...";
exec("rm -rf /home/pfsense");
@@ -228,3 +231,7 @@ function post_cvssync_commands() {
conf_mount_ro();
+echo "===> Showing rules.debug differences\n";
+exec("diff -u /tmp/rules.beforecvssync /conf/config.xml");
+
+echo "\n";
OpenPOWER on IntegriCloud