mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Add default noname if hostname is empty
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
7dc7cbb80e
commit
78027bd2bf
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ Teleporter() {
|
||||||
datetimestamp=$(date "+%Y-%m-%d_%H-%M-%S")
|
datetimestamp=$(date "+%Y-%m-%d_%H-%M-%S")
|
||||||
host=$(hostname)
|
host=$(hostname)
|
||||||
host="${host//./_}"
|
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()
|
checkDomain()
|
||||||
|
|
Loading…
Reference in a new issue