From 567de57a6dcd5f49870de1fb29816996fd317923 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Wed, 23 Nov 2022 09:29:05 +0000 Subject: [PATCH] Update upgrade add email to admin with infos about new sandbox domain --- scripts/upgrade | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index a553cf3..5aa6ad9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,6 +197,25 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# SEND A README FOR THE ADMIN +#================================================= +ynh_script_progression --message="Sending a readme for the admin..." --weight=1 + +message="CryptPad was successfully upgraded :) +We have added a sandbox domain for you but you still need to configure your DNS and generate Let's Encrypt Certificates for it !! +If not already done, then you can please open your $app domain: https://$domain$path_url +Create an account via the Register button on the home page. To make this account an instance administrator: +1. Copy the public key found in User Menu (avatar at the top right) > Settings > Account > Public Signing Key +2. Paste this key in /var/www/cryptpad/config/config.js in the following array (uncomment and replace the placeholder): +adminKeys: [ + "[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]", +], +If you are facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/cryptpad_ynh" + +ynh_send_readme_to_admin "$message" + + #================================================= # END OF SCRIPT #=================================================