use full hostname for servername var

This commit is contained in:
Matthew Saunders Brown 2023-03-18 16:37:47 -07:00
parent 4bc642903a
commit 164cc218b3

View File

@ -93,11 +93,12 @@ if [[ "$domains_id" -gt '0' ]] ; then
/usr/local/bin/vmail-roundcubemail-settings-export.php $domain /usr/local/bin/vmail-roundcubemail-settings-export.php $domain
fi fi
servername=`hostname -d` servername=`hostname -f`
echo echo
echo "Vmail configs for $domain have been exported." echo "Vmail configs for $domain have been exported."
echo "To migrate to a new server run these commands (as root) from the new server:" echo "To migrate to a new server run these commands (as root) from the new server:"
echo
echo "rsync -v --archive --relative --rsh=/usr/bin/ssh root@$servername:/var/vmail/$domain /" echo "rsync -v --archive --relative --rsh=/usr/bin/ssh root@$servername:/var/vmail/$domain /"
echo "vmail-domains-imp.sh -d $domain" echo "vmail-domains-imp.sh -d $domain"