diff options
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) ); |