mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix Admin mail message
This commit is contained in:
parent
848c0a2c63
commit
88175853a9
4 changed files with 25 additions and 28 deletions
|
@ -1,5 +0,0 @@
|
||||||
Standard Notes - Syncing Server was successfully __TYPE__.
|
|
||||||
Please configure the Standard Notes web app or mobile app to use this syning server: https://__DOMAIN____PATH_URL__/
|
|
||||||
__CONFIG_PANEL__
|
|
||||||
|
|
||||||
__ADMIN_MAIL_INFO__
|
|
|
@ -194,14 +194,14 @@ admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4)
|
||||||
config_panel="You can find some specific configurations for this app by using the experimental __URL_TAG1__config-panel feature__URL_TAG2__$admin_panel/config-panel__URL_TAG3__"
|
config_panel="You can find some specific configurations for this app by using the experimental __URL_TAG1__config-panel feature__URL_TAG2__$admin_panel/config-panel__URL_TAG3__"
|
||||||
admin_mail_info="You changed the url of the server. All Extensions have to be reinstalled by the users. Or you can change the url back."
|
admin_mail_info="You changed the url of the server. All Extensions have to be reinstalled by the users. Or you can change the url back."
|
||||||
|
|
||||||
ynh_replace_string --match_string="__TYPE__" --replace_string="updated ( Changed the url )" --target_file="../conf/message"
|
echo -e "\
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message"
|
Standard Notes - Syncing Server's url was successfully changed.\n\
|
||||||
ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message"
|
Please configure the Standard Notes web app or mobile app to use this syning server: https://$domain$path_url/\n\
|
||||||
|
$config_panel\n\n\
|
||||||
|
$admin_mail_info\
|
||||||
|
" > message
|
||||||
|
|
||||||
ynh_replace_string --match_string="__CONFIG_PANEL__" --replace_string="$config_panel" --target_file="../conf/message"
|
ynh_send_readme_to_admin --app_message="message" --type='change_url'
|
||||||
ynh_replace_string --match_string="__ADMIN_MAIL_INFO__" --replace_string="$admin_mail_info" --target_file="../conf/message"
|
|
||||||
|
|
||||||
ynh_send_readme_to_admin --app_message="../conf/message" --type='change_url'
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -307,16 +307,17 @@ Standard Notes extensions are hosted with this package.\n\
|
||||||
New users will get an e-mail with install instructions.\n\
|
New users will get an e-mail with install instructions.\n\
|
||||||
With the current SMTP settings you can not send e-mails to all e-mail providers. For example GMail will probably not recive this e-mails.\n\
|
With the current SMTP settings you can not send e-mails to all e-mail providers. For example GMail will probably not recive this e-mails.\n\
|
||||||
Please setup the SMTP account in this file: \"$final_path/live/.env\" under \"#Mailer settings\" if you want to fix this.\n\
|
Please setup the SMTP account in this file: \"$final_path/live/.env\" under \"#Mailer settings\" if you want to fix this.\n\
|
||||||
Please setup the Access-Domain for the extensions in the __URL_TAG1__config-panel__URL_TAG2__$admin_panel/config-panel__URL_TAG3__ if not already done during the installation settings."
|
Please setup the Access-Domain for the extensions in the __URL_TAG1__config-panel__URL_TAG2__$admin_panel/config-panel__URL_TAG3__ if not already done during the installation settings.\
|
||||||
|
"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__TYPE__" --replace_string="installed" --target_file="../conf/message"
|
echo -e "\
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message"
|
Standard Notes - Syncing Server was successfully installed.\n\
|
||||||
ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message"
|
Please configure the Standard Notes web app or mobile app to use this syning server: https://$domain$path_url/\n\
|
||||||
|
$config_panel\n\n\
|
||||||
|
$admin_mail_info\
|
||||||
|
" > message
|
||||||
|
|
||||||
ynh_replace_string --match_string="__CONFIG_PANEL__" --replace_string="$config_panel" --target_file="../conf/message"
|
ynh_send_readme_to_admin --app_message="message" --type='install'
|
||||||
ynh_replace_string --match_string="__ADMIN_MAIL_INFO__" --replace_string="$admin_mail_info" --target_file="../conf/message"
|
|
||||||
|
|
||||||
ynh_send_readme_to_admin --app_message="../conf/message" --type='install'
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -375,16 +375,17 @@ Now Standard Notes extensions are hosted with this package.\n\
|
||||||
Only new users will get an e-mail with install instructions.\n\
|
Only new users will get an e-mail with install instructions.\n\
|
||||||
With the current SMTP settings you can not send e-mails to all e-mail providers. For example GMail will probably not recive this e-mails.\n\
|
With the current SMTP settings you can not send e-mails to all e-mail providers. For example GMail will probably not recive this e-mails.\n\
|
||||||
Please setup the SMTP account in this file: \"$final_path/live/.env\" under \"#Mailer settings\" if you want to fix this.\n\
|
Please setup the SMTP account in this file: \"$final_path/live/.env\" under \"#Mailer settings\" if you want to fix this.\n\
|
||||||
Please setup the Access-Domain for the extensions in the __URL_TAG1__config-panel__URL_TAG2__$admin_panel/config-panel__URL_TAG3__"
|
Please setup the Access-Domain for the extensions in the __URL_TAG1__config-panel__URL_TAG2__$admin_panel/config-panel__URL_TAG3__\
|
||||||
|
"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__TYPE__" --replace_string="upgraded" --target_file="../conf/message"
|
echo -e "\
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message"
|
Standard Notes - Syncing Server was successfully upgraded.\n\
|
||||||
ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message"
|
Please configure the Standard Notes web app or mobile app to use this syning server: https://$domain$path_url/\n\
|
||||||
|
$config_panel\n\n\
|
||||||
|
$admin_mail_info\
|
||||||
|
" > message
|
||||||
|
|
||||||
ynh_replace_string --match_string="__CONFIG_PANEL__" --replace_string="$config_panel" --target_file="../conf/message"
|
ynh_send_readme_to_admin --app_message="message" --type='upgrade'
|
||||||
ynh_replace_string --match_string="__ADMIN_MAIL_INFO__" --replace_string="$admin_mail_info" --target_file="../conf/message"
|
|
||||||
|
|
||||||
ynh_send_readme_to_admin --app_message="../conf/message" --type='upgrade'
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue