From 23fe8790b24c8b744ae3a0316efdb8ea0fa8968c Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 30 Jan 2021 17:17:28 +0100 Subject: [PATCH] Update admin readme emails and actions feature informations --- scripts/actions/install_extensions | 11 +++++++++++ scripts/change_url | 6 ++++-- scripts/install | 2 +- scripts/upgrade | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/scripts/actions/install_extensions b/scripts/actions/install_extensions index 8aac787..b7b37f8 100644 --- a/scripts/actions/install_extensions +++ b/scripts/actions/install_extensions @@ -23,6 +23,7 @@ ynh_abort_if_errors app=$YNH_APP_INSTANCE_NAME path_url=$(ynh_app_setting_get --app=$app --key=path) domain=$(ynh_app_setting_get --app=$app --key=domain) +access_domain=$(ynh_app_setting_get --app=$app --key=access_domain) #================================================= # CHECK IF ARGUMENTS ARE CORRECT @@ -97,6 +98,16 @@ ynh_script_progression --message="Waiting for service..." --weight=1 is_service_ready +#================================================= +# CONFIG INFORMATION +#================================================= +ynh_script_progression --message="Configuration Informations" --weight=1 + +admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4)/yunohost/admin/#/apps/$app" + +ynh_print_info "You need to set the access_domain in the config-panel to be able to access the extentions via the Standard Notes web app." +ynh_print_info "access_domain is currently set to: $(echo $access_domain | sed "s@;@ @g")" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/change_url b/scripts/change_url index 3adc654..7f33874 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -185,6 +185,8 @@ admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4) message_extensions="To install extensions open this page: https://$domain$path_url/extensions/\n\ You changed the url of the syncing server. All extensions installed from here must be reinstalled by the users." +message_no_extensions="You have no extensions installed.\n\ +You can install the extensions by using the actions feature." action="You can find some specific actions for this app by using the experimental __URL_TAG1__action feature__URL_TAG2__$admin_panel/actions__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__" @@ -196,12 +198,12 @@ if [ $install_extensions -eq 1 ] then ynh_replace_string --match_string="__EXTENSIONS__" --replace_string="$message_extensions" --target_file="../conf/message" else - ynh_replace_string --match_string="__EXTENSIONS__" --replace_string="" --target_file="../conf/message" + ynh_replace_string --match_string="__EXTENSIONS__" --replace_string="$message_no_extensions" --target_file="../conf/message" fi ynh_replace_string --match_string="__ACTION__" --replace_string="$action" --target_file="../conf/message" ynh_replace_string --match_string="__CONFIG_PANEL__" --replace_string="$config_panel" --target_file="../conf/message" -ynh_send_readme_to_admin --app_message="../conf/message" --type='upgrade' +ynh_send_readme_to_admin --app_message="../conf/message" --type='change_url' #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index ce06bd7..aa0de53 100755 --- a/scripts/install +++ b/scripts/install @@ -302,7 +302,7 @@ ynh_script_progression --message="Sending a readme for the admin..." message_extensions="To install extensions open this page: https://$domain$path_url/extensions/\n\ If you want to change the url of the syncing server all extensions from here have to be reinstalled be the users." message_no_extensions="You have no extensions installed.\n\ -You can configure this app by using the config-panel" +You can install the extensions by using the actions feature." admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4)/yunohost/admin/#/apps/$app" action="You can find some specific actions for this app by using the experimental __URL_TAG1__action feature__URL_TAG2__$admin_panel/actions__URL_TAG3__" diff --git a/scripts/upgrade b/scripts/upgrade index 1d76353..ab63b9b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -343,7 +343,7 @@ ynh_script_progression --message="Sending a readme for the admin..." message_extensions="To install extensions open this page: https://$domain$path_url/extensions/\n\ If you want to change the url of the syncing server all extensions from here have to be reinstalled be the users." message_no_extensions="You have no extensions installed.\n\ -You can configure this app by using the config-panel" +You can install the extensions by using the actions feature." admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4)/yunohost/admin/#/apps/$app" action="You can find some specific actions for this app by using the experimental __URL_TAG1__action feature__URL_TAG2__$admin_panel/actions__URL_TAG3__"