From 57416e701e125026c661892902a1522f012ec113 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sun, 23 Apr 2023 14:51:34 +0200 Subject: [PATCH] keep order --- scripts/install | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 78b6bb5..89ef312 100644 --- a/scripts/install +++ b/scripts/install @@ -143,6 +143,13 @@ echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyof ynh_package_update ynh_package_install onlyoffice-documentserver +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." + +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" #================================================= # SECURE FILES AND DIRECTORIES @@ -153,14 +160,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R ds:ds "$final_path" -#================================================= -# ADD A CONFIGURATION -#================================================= -ynh_script_progression --message="Adding a configuration file..." - -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" - #================================================= # GENERIC FINALIZATION #=================================================