From 164cc218b3bfc09154caad5c71d691b805e31469 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sat, 18 Mar 2023 16:37:47 -0700 Subject: [PATCH] use full hostname for servername var --- bin/vmail-domains-exp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/vmail-domains-exp.sh b/bin/vmail-domains-exp.sh index f6b47e4..100dd5c 100755 --- a/bin/vmail-domains-exp.sh +++ b/bin/vmail-domains-exp.sh @@ -93,11 +93,12 @@ if [[ "$domains_id" -gt '0' ]] ; then /usr/local/bin/vmail-roundcubemail-settings-export.php $domain fi - servername=`hostname -d` + servername=`hostname -f` echo 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 echo "rsync -v --archive --relative --rsh=/usr/bin/ssh root@$servername:/var/vmail/$domain /" echo "vmail-domains-imp.sh -d $domain"