Browse Source

Small changes at email notification.

Raphael Schneeberger 7 years ago
parent
commit
079a224671
2 changed files with 13 additions and 11 deletions
  1. 6 5
      install/hst-install-debian.sh
  2. 7 6
      install/hst-install-ubuntu.sh

+ 6 - 5
install/hst-install-debian.sh

@@ -1477,24 +1477,25 @@ if [ "$host_ip" = "$ip" ]; then
 fi
 
 # Sending notification to admin email
-echo -e "Congratulations, you have just successfully installed \
-Hestia Control Panel
+content=$(cat <<-END
+Congratulations, you have just successfully installed Hestia Control Panel!
 
     https://$ip:$port
     username: admin
     password: $vpass
 
-We hope that you enjoy your installation of Hestia. Please \
+We hope that you enjoy your installation of Hestia. Please
 feel free to contact us anytime if you have any questions.
 Thank you.
 
 --
 Sincerely yours
 hestiacp.com team
-" > $tmpfile
+END
+)
 
 send_mail="$HESTIA/web/inc/mail-wrapper.php"
-cat $tmpfile | $send_mail -s "Hestia Control Panel" $email
+cat $tmpfile | php $send_mail -s "Hestia Control Panel" $email
 
 # Congrats
 echo '======================================================='

+ 7 - 6
install/hst-install-ubuntu.sh

@@ -1425,24 +1425,25 @@ if [ "$host_ip" = "$ip" ]; then
 fi
 
 # Sending notification to admin email
-echo -e "Congratulations, you have just successfully installed \
-Hestia Control Panel
+content=$(cat <<-END
+Congratulations, you have just successfully installed Hestia Control Panel!
 
     https://$ip:$port
     username: admin
     password: $vpass
 
-We hope that you enjoy your installation of Hestia. Please \
+We hope that you enjoy your installation of Hestia. Please
 feel free to contact us anytime if you have any questions.
 Thank you.
 
 --
 Sincerely yours
-HestiaCP.com team
-" > $tmpfile
+hestiacp.com team
+END
+)
 
 send_mail="$HESTIA/web/inc/mail-wrapper.php"
-cat $tmpfile | $send_mail -s "Hestia Control Panel" $email
+cat $tmpfile | php $send_mail -s "Hestia Control Panel" $email
 
 # Congrats
 echo '======================================================='