aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-19 20:42:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-19 20:42:04 +0000
commit09bd6c8c2aa31e79c5fdac185c3f4a0eac4e6b0c (patch)
tree70fca6d9fb9ce9d4f0c15f8e38d15a19a762e197 /packages/autoconfigbackup/autoconfigbackup.inc
parent08c8db8a0320e400f751a026be98b774c613228c (diff)
downloadpfsense-packages-09bd6c8c2aa31e79c5fdac185c3f4a0eac4e6b0c.tar.gz
pfsense-packages-09bd6c8c2aa31e79c5fdac185c3f4a0eac4e6b0c.tar.bz2
pfsense-packages-09bd6c8c2aa31e79c5fdac185c3f4a0eac4e6b0c.zip
Use full hostname + domain.
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.inc')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc
index 0e014117..7f9b565f 100644
--- a/packages/autoconfigbackup/autoconfigbackup.inc
+++ b/packages/autoconfigbackup/autoconfigbackup.inc
@@ -66,7 +66,7 @@ function test_connection($post) {
$password = $post['password'];
// Set hostname
- $hostname = $config['system']['hostname'];
+ $hostname = $config['system']['hostname'] . "." . $config['system']['domain'];
// URL to restore.php
$get_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/restore.php";
@@ -110,7 +110,7 @@ function upload_config() {
$last_backup_date = str_replace("\n", "", file_get_contents("/cf/conf/lastpfSbackup.txt"));
$last_config_change = $config['revision']['time'];
- $hostname = $config['system']['hostname'];
+ $hostname = $config['system']['hostname'] . "." . $config['system']['domain'];
$reason = $config['revision']['description'];
$username = $config['installedpackages']['autoconfigbackup']['config'][0]['username'];
$password = $config['installedpackages']['autoconfigbackup']['config'][0]['password'];