From d8545aa36d39ef40ccdc72c326cb09b56b51ddc4 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 24 Oct 2018 14:17:18 +0200 Subject: [PATCH] Get rid of further double code. --- install_amavis.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/install_amavis.sh b/install_amavis.sh index 29076ad..cfb3efa 100755 --- a/install_amavis.sh +++ b/install_amavis.sh @@ -198,13 +198,6 @@ fi # --- Some further default values depending on Hostname # ------------- -if [[ -z "$_HOSTNAME" ]] ; then - _HOSTNAME="$(hostname -f)" - _HOSTNAME_SHORT="$(hostname)" - [[ "$_HOSTNAME" = "$_HOSTNAME_SHORT" ]] && _HOSTNAME="" -fi - - # - Set default values for ipv4- and ipv6-address # - if [[ -z $_IPV4 ]] && [[ -n "$_HOSTNAME" ]] && [[ -x "$(which dig)" ]]; then