diff options
author | Christian König <ckoenig@posteo.de> | 2021-02-12 22:25:01 +0300 |
---|---|---|
committer | Christian König <ckoenig@posteo.de> | 2021-02-12 22:25:01 +0300 |
commit | 78027bd2bfeba890af7a0e440b9c7b6b15c9b3d0 (patch) | |
tree | c2e0ffbf2df7bce7d03375fefb63c5b3edf3dcc7 /advanced/Scripts/webpage.sh | |
parent | 7dc7cbb80e4156cab3078c442aa38a0ca00cb2dc (diff) |
Add default noname if hostname is empty
Signed-off-by: Christian König <ckoenig@posteo.de>
Diffstat (limited to 'advanced/Scripts/webpage.sh')
-rwxr-xr-x | advanced/Scripts/webpage.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 5e7d90f9..53f815c5 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -640,7 +640,7 @@ Teleporter() { datetimestamp=$(date "+%Y-%m-%d_%H-%M-%S") host=$(hostname) host="${host//./_}" - php /var/www/html/admin/scripts/pi-hole/php/teleporter.php > "pi-hole-${host}-teleporter_${datetimestamp}.tar.gz" + php /var/www/html/admin/scripts/pi-hole/php/teleporter.php > "pi-hole-${host:-noname}-teleporter_${datetimestamp}.tar.gz" } checkDomain() |