diff --git a/conf/msg_install b/conf/msg_install new file mode 100644 index 0000000..917dc24 --- /dev/null +++ b/conf/msg_install @@ -0,0 +1,12 @@ +__APP__ was successfully installed :) + +Please open your __APP__ domain: https://__DOMAIN____PATH_URL__ + +To configure OnlyOffice with your Nextcloud, go to the settings: +under "Administration > ONLYOFFICE > Server settings > +- Address of the Document Server" enter: "https://__DOMAIN____PATH_URL__" +- Secret key" enter "__JWT_TOKEN__" + +OnlyOffice should now work with your Nextcloud! + +If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/onlyoffice_ynh \ No newline at end of file diff --git a/scripts/install b/scripts/install index 2d27d81..a7a0415 100644 --- a/scripts/install +++ b/scripts/install @@ -30,6 +30,8 @@ echo onlyoffice-documentserver onlyoffice/db-user string $db_user | debconf-set- echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections +#echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean false | debconf-set-selections + #================================================= # ADD A CONFIGURATION #================================================= @@ -52,7 +54,7 @@ chown -R ds:ds "$install_dir" #================================================= ynh_script_progression --message="Generating fonts..." -/usr/bin/documentserver-generate-allfonts.sh +/usr/bin/documentserver-generate-allfonts.sh 2>/dev/null #================================================= # SEND A README FOR THE ADMIN @@ -62,6 +64,15 @@ ynh_script_progression --message="Sending a readme for the admin..." jwt_token=$(documentserver-jwt-status.sh | sed "3q;d" | cut -d "-" -f 2 | tr -d ' ') ynh_app_setting_set --app=$app --key=jwt_token --value=$jwt_token +#================================================= +# SEND A README FOR THE ADMIN +#================================================= +ynh_script_progression --message="Sending a readme for the admin..." + +jwt_token=$(documentserver-jwt-status.sh | sed "3q;d" | cut -d "-" -f 2 | tr -d ' ') + +ynh_send_readme_to_admin --app_message="../conf/msg_install" --recipients=$admin_mail --type='install' + #================================================= # END OF SCRIPT #=================================================