mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Merge branch 'testing' into version-2
This commit is contained in:
commit
cbf3bc45c6
2 changed files with 24 additions and 1 deletions
12
conf/msg_install
Normal file
12
conf/msg_install
Normal file
|
@ -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
|
|
@ -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-pwd password $db_pwd | debconf-set-selections
|
||||||
echo onlyoffice-documentserver onlyoffice/db-name string $db_name | 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
|
# ADD A CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -52,7 +54,7 @@ chown -R ds:ds "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Generating fonts..."
|
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
|
# 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 ' ')
|
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
|
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
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue