diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-23 23:07:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-23 23:07:46 +0000 |
commit | c4110081ca4be29d45a063ca8ddd27e80de96bbb (patch) | |
tree | b3fac3c3484ff131deb496ee6eaab2b00eab99c2 /etc/phpshellsessions/cvssync | |
parent | eefa2b49b0225384835e540201c5db44d487f7b0 (diff) | |
download | pfsense-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/cvssync')
-rw-r--r-- | etc/phpshellsessions/cvssync | 7 |
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"; |