diff --git a/README.md b/README.md index b724e85..d262f93 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in LibreOffice-based online office suite with collaborative editing -**Shipped version:** 6.4.10~ynh1 +**Shipped version:** 6.4.10~ynh2 diff --git a/README_fr.md b/README_fr.md index d9b9bf6..34518ba 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Suite office en ligne et collaborative, basée sur LibreOffice -**Version incluse :** 6.4.10~ynh1 +**Version incluse :** 6.4.10~ynh2 diff --git a/check_process b/check_process index 55387ca..f0c8a51 100644 --- a/check_process +++ b/check_process @@ -1,7 +1,7 @@ ;; Test complet ; Manifest domain="domain.tld" - password="pass" + password="password" nextcloud_domain="nextcloud.tld" ; Checks pkg_linter=1 diff --git a/manifest.json b/manifest.json index 6333873..c2b7925 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "LibreOffice-based online office suite with collaborative editing", "fr": "Suite office en ligne et collaborative, basée sur LibreOffice" }, - "version": "6.4.10~ynh1", + "version": "6.4.10~ynh2", "url": "https://collaboraoffice.com", "upstream": { "license": "MPL-2.0", diff --git a/scripts/install b/scripts/install index c10b7be..8696134 100644 --- a/scripts/install +++ b/scripts/install @@ -67,6 +67,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # CONFIGURE ONLYOFFICE #================================================= +ynh_script_progression --message="Installing config file..." --weight=2 # Turns out we need to create/copy this file BEFORE the actual .deb install, # otherwise stupid collabora will expect to find a certificate file in its own @@ -74,6 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port # because we're in a reverse proxy context... mkdir -p /etc/loolwsd ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml" +chmod 640 "/etc/loolwsd/loolwsd.xml" #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/restore b/scripts/restore index aee7195..032367f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -52,6 +52,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_script_progression --message="Restoring the configuration..." --weight=3 ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml" +chmod 640 "/etc/loolwsd/loolwsd.xml" #================================================= # SPECIFIC RESTORATION @@ -73,7 +74,7 @@ yunohost service add "loolwsd" --description="Collabora online office suite" --l #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." +ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name="loolwsd" --action="restart" --log_path="systemd" --line_match="Ready to accept connections" diff --git a/scripts/upgrade b/scripts/upgrade index cf43bf1..4dd15fd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,9 +74,13 @@ ynh_add_nginx_config #================================================= # UPGRADE CONFIG #================================================= +ynh_script_progression --message="Upgrading config file..." --weight=2 ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml" +chown lool: "/etc/loolwsd/loolwsd.xml" +chmod 640 "/etc/loolwsd/loolwsd.xml" + #================================================= # UPGRADE DEPENDENCIES #=================================================