Send login instructions by mail after installation (#15)

This commit is contained in:
Florent
2022-07-18 12:58:25 +02:00
committed by Florent F
parent d98e9f81a9
commit 5f2cd1f0d2
3 changed files with 148 additions and 0 deletions
+8
View File
@@ -8,6 +8,7 @@
source _common.sh
source /usr/share/yunohost/helpers
source ynh_send_readme_to_admin__2
#=================================================
# MANAGE SCRIPT FAILURE
@@ -182,6 +183,13 @@ ynh_script_progression --message="Reloading NGINX web server..."
ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# SEND A README FOR THE ADMIN
#=================================================
ynh_script_progression --message="Sending a readme for the admin..."
ynh_send_readme_to_admin --app_message="../conf/msg_install" --recipients=$email --type='install'
#=================================================
# END OF SCRIPT
#=================================================