Skip to content

Commit 079a224

Browse files
committed
Small changes at email notification.
1 parent 13cc60f commit 079a224

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

install/hst-install-debian.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,24 +1477,25 @@ if [ "$host_ip" = "$ip" ]; then
14771477
fi
14781478

14791479
# Sending notification to admin email
1480-
echo -e "Congratulations, you have just successfully installed \
1481-
Hestia Control Panel
1480+
content=$(cat <<-END
1481+
Congratulations, you have just successfully installed Hestia Control Panel!
14821482
14831483
https://$ip:$port
14841484
username: admin
14851485
password: $vpass
14861486
1487-
We hope that you enjoy your installation of Hestia. Please \
1487+
We hope that you enjoy your installation of Hestia. Please
14881488
feel free to contact us anytime if you have any questions.
14891489
Thank you.
14901490
14911491
--
14921492
Sincerely yours
14931493
hestiacp.com team
1494-
" > $tmpfile
1494+
END
1495+
)
14951496

14961497
send_mail="$HESTIA/web/inc/mail-wrapper.php"
1497-
cat $tmpfile | $send_mail -s "Hestia Control Panel" $email
1498+
cat $tmpfile | php $send_mail -s "Hestia Control Panel" $email
14981499

14991500
# Congrats
15001501
echo '======================================================='

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,24 +1425,25 @@ if [ "$host_ip" = "$ip" ]; then
14251425
fi
14261426

14271427
# Sending notification to admin email
1428-
echo -e "Congratulations, you have just successfully installed \
1429-
Hestia Control Panel
1428+
content=$(cat <<-END
1429+
Congratulations, you have just successfully installed Hestia Control Panel!
14301430
14311431
https://$ip:$port
14321432
username: admin
14331433
password: $vpass
14341434
1435-
We hope that you enjoy your installation of Hestia. Please \
1435+
We hope that you enjoy your installation of Hestia. Please
14361436
feel free to contact us anytime if you have any questions.
14371437
Thank you.
14381438
14391439
--
14401440
Sincerely yours
1441-
HestiaCP.com team
1442-
" > $tmpfile
1441+
hestiacp.com team
1442+
END
1443+
)
14431444

14441445
send_mail="$HESTIA/web/inc/mail-wrapper.php"
1445-
cat $tmpfile | $send_mail -s "Hestia Control Panel" $email
1446+
cat $tmpfile | php $send_mail -s "Hestia Control Panel" $email
14461447

14471448
# Congrats
14481449
echo '======================================================='

0 commit comments

Comments
 (0)