1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix deb installation

This commit is contained in:
Salamandar 2024-03-19 10:39:41 +01:00
parent 094d736544
commit f1d5501f68
2 changed files with 11 additions and 37 deletions

View file

@ -78,10 +78,11 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
key = "https://ftp-master.debian.org/keys/release-bullseye.asc" key = "https://ftp-master.debian.org/keys/release-bullseye.asc"
packages = ["ttf-mscorefonts-installer"] packages = ["ttf-mscorefonts-installer"]
[resources.apt.extras.onlyoffice] # Manual install in scripts
repo = "https://download.onlyoffice.com/repo/debian squeeze main" # [resources.apt.extras.onlyoffice]
key = "https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE" # repo = "https://download.onlyoffice.com/repo/debian squeeze main"
packages = "onlyoffice-documentserver" # key = "https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
# packages = "onlyoffice-documentserver"
[resources.database] [resources.database]
type = "postgresql" type = "postgresql"

View file

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
#=================================================
# GENERIC START
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
@ -32,8 +30,6 @@ fi
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# SPECIFIC SETUP
#================================================= #=================================================
# CONFIGURE ONLYOFFICE # CONFIGURE ONLYOFFICE
#================================================= #=================================================
@ -56,12 +52,16 @@ ynh_script_progression --message="Install OnlyOffice..."
# restart NGINX and the whole webadmin and maybe even the YunoHost command # restart NGINX and the whole webadmin and maybe even the YunoHost command
# running the install... # running the install...
#REMOVEME? ynh_exec_warn_less ynh_install_extra_app_dependencies --repo="https://download.onlyoffice.com/repo/debian squeeze main" --package="onlyoffice-documentserver" --key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE" # Can't do that in the manifest because we need the debconf-set-selections and postgresql already configured
ynh_exec_warn_less ynh_install_extra_app_dependencies \
--repo="https://download.onlyoffice.com/repo/debian squeeze main" \
--key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE" \
--package="onlyoffice-documentserver"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." ynh_script_progression --message="Adding $app's configuration file..."
ynh_replace_string --match_string="\"rejectUnauthorized\": true" --replace_string="\"rejectUnauthorized\": false" --target_file="/etc/onlyoffice/documentserver/default.json" ynh_replace_string --match_string="\"rejectUnauthorized\": true" --replace_string="\"rejectUnauthorized\": false" --target_file="/etc/onlyoffice/documentserver/default.json"
ynh_store_file_checksum --file="/etc/onlyoffice/documentserver/default.json" ynh_store_file_checksum --file="/etc/onlyoffice/documentserver/default.json"
@ -82,33 +82,6 @@ ynh_script_progression --message="Generating fonts..."
/usr/bin/documentserver-generate-allfonts.sh 2>/dev/null /usr/bin/documentserver-generate-allfonts.sh 2>/dev/null
#=================================================
# SETUP SSOWAT
#=================================================
#REMOVEME? ynh_script_progression --message="Configuring permissions..."
# Make app public if necessary
#REMOVEME? if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
#REMOVEME? ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================
# RELOAD NGINX
#=================================================
#REMOVEME? ynh_script_progression --message="Reloading NGINX web server..."
#REMOVEME? ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# SEND A README FOR THE ADMIN
#=================================================
ynh_script_progression --message="Sending a readme for the admin..."
ynh_send_readme_to_admin --app_message="../conf/msg_install" --recipients=$admin_mail --type='install'
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================