diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-07 04:20:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-07 04:20:03 +0000 |
commit | 8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f (patch) | |
tree | 2e7a138ae162f340fe507f6dc40a973f313e349f /packages/autoconfigbackup/autoconfigbackup.inc | |
parent | 5b8ac7b1e4401d9819c36b0f9bde19eb434ffca9 (diff) | |
download | pfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.tar.gz pfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.tar.bz2 pfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.zip |
* Move backup functions to its own tab backup now
* Add nooverwrite support for hostname
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.inc')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc index 818f154a..45d0efbe 100644 --- a/packages/autoconfigbackup/autoconfigbackup.inc +++ b/packages/autoconfigbackup/autoconfigbackup.inc @@ -100,6 +100,13 @@ function upload_config() { * (C) 2008 BSD Perimeter LLC * */ + + if(file_exists("/tmp/acb_nooverwrite")) { + unlink("/tmp/acb_nooverwrite"); + $nooverwrite = "true"; + } else { + $nooverwrite = "false"; + } // Define some needed variables if(!file_exists("/cf/conf/lastpfSbackup.txt")) { @@ -152,6 +159,7 @@ function upload_config() { 'reason' => urlencode($reason), 'hostname' => urlencode($hostname), 'configxml' => urlencode($data), + 'nooverwrite' => urlencode($nooverwrite), 'raw_config_sha256_hash' => urlencode($raw_config_sha256_hash) ); |