13 lines
566 B
Bash
13 lines
566 B
Bash
if [ -z "${domain}" ]; then
|
|
if [ $IMODE = n ]; then
|
|
domain=$(whiptail --nocancel --inputbox " Enter the domain without WWW " 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
|
elif [ $IMODE = l ]; then
|
|
echo "Enter the domain without WWW:"
|
|
read domain
|
|
fi
|
|
fi
|
|
|
|
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
|
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
|
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
|
fi |