1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

improve mail message

This commit is contained in:
ericgaspar 2020-10-16 14:06:51 +02:00
parent 28e1d9b2f8
commit a7078863ac
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 3 deletions

View file

@ -59,7 +59,9 @@ ynh_send_readme_to_admin() {
local mail_subject="☁️🆈🅽🅷☁️: \`$app\` has important message for you" local mail_subject="☁️🆈🅽🅷☁️: \`$app\` has important message for you"
local mail_message="This is an automated message from your beloved YunoHost server. \nSpecific information for the application $app.\n$app_message\n---\nAutomatic diagnosis data from YunoHost\n$(yunohost tools diagnosis | grep -B 100 "services:" | sed '/services:/d')" local mail_message="This is an automated message from your beloved YunoHost server.
Specific information for $app.
$app_message"
# Define binary to use for mail command # Define binary to use for mail command
if [ -e /usr/bin/bsd-mailx ] if [ -e /usr/bin/bsd-mailx ]

View file

@ -171,7 +171,7 @@ ynh_systemd_action --service_name=nginx --action=reload
# SEND A README FOR THE ADMIN # SEND A README FOR THE ADMIN
#================================================= #=================================================
message=" $app was successfully installed :) \n message=" Webtrees was successfully installed :)
Please open https://$domain$path_url Please open https://$domain$path_url
@ -179,7 +179,7 @@ Your credentials for the admin panel are:
- admin username: $admin_username - admin username: $admin_username
- admin password: $password - admin password: $password
If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/Webtrees_ynh" If you facing an issue or want to improve Webtrees, please open a new issue in this project: https://github.com/YunoHost-Apps/webtrees_ynh"
ynh_send_readme_to_admin "$message" ynh_send_readme_to_admin "$message"