diff --git a/conf/message b/conf/message deleted file mode 100644 index 1116fbd..0000000 --- a/conf/message +++ /dev/null @@ -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__ diff --git a/scripts/change_url b/scripts/change_url index 10e6dcf..8df1586 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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__" 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" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message" -ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message" +echo -e "\ +Standard Notes - Syncing Server's url was successfully changed.\n\ +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_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' +ynh_send_readme_to_admin --app_message="message" --type='change_url' #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index 292ae64..80a6d61 100755 --- a/scripts/install +++ b/scripts/install @@ -307,16 +307,17 @@ Standard Notes extensions are hosted with this package.\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\ 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" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message" -ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message" +echo -e "\ +Standard Notes - Syncing Server was successfully installed.\n\ +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_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' +ynh_send_readme_to_admin --app_message="message" --type='install' #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index bb9aa73..b4ffdcf 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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\ 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 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" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message" -ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message" +echo -e "\ +Standard Notes - Syncing Server was successfully upgraded.\n\ +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_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' +ynh_send_readme_to_admin --app_message="message" --type='upgrade' #================================================= # END OF SCRIPT