mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Update admin readme emails and actions feature informations
This commit is contained in:
parent
3b75f1f816
commit
23fe8790b2
4 changed files with 17 additions and 4 deletions
|
@ -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 <a href=\"$admin_panel/config-panel\">config-panel</a> 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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__"
|
||||
|
|
|
@ -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__"
|
||||
|
|
Loading…
Reference in a new issue