From 821692ed138f3ddfa7d0bacd38309fdf8de5a1d9 Mon Sep 17 00:00:00 2001 From: SiM <> Date: Wed, 28 Oct 2020 22:05:27 +0100 Subject: [PATCH 1/4] change owner of dolibarr directory --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5558e7a..a5d15dd 100644 --- a/scripts/install +++ b/scripts/install @@ -232,7 +232,7 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php" #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir" diff --git a/scripts/restore b/scripts/restore index 368ff0b..d7cfd4d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -106,7 +106,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir" diff --git a/scripts/upgrade b/scripts/upgrade index e07fffe..d595ac6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -215,7 +215,7 @@ ynh_use_logrotate --non-append #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir" From a1d80652d6e8c1f5ae47af01c5a69f6b49290463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lemonsu=20Lo=C3=AFc?= Date: Mon, 14 Dec 2020 11:54:09 +0100 Subject: [PATCH 2/4] Allow visitors to public folder See #41 --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index a5d15dd..f5286fa 100644 --- a/scripts/install +++ b/scripts/install @@ -257,6 +257,8 @@ then ynh_permission_update --permission "main" --add "visitors" fi +ynh_permission_create --permission "public access" --url "/public/" --allowed "visitors" + #================================================= # RELOAD NGINX #================================================= From 9965711e6acabe5fef4b02762309a0ffb7df0ae8 Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Tue, 29 Dec 2020 19:12:16 +0100 Subject: [PATCH 3/4] Allow visitors to public folder See #41 --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index d595ac6..18177d7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -233,6 +233,8 @@ then ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" fi +ynh_permission_create --permission "public access" --url "/public/" --allowed "visitors" + #================================================= # RELOAD NGINX #================================================= From c949919c6ce58776d1c59e9b7f370d21800657fd Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Tue, 29 Dec 2020 19:13:18 +0100 Subject: [PATCH 4/4] Update version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index b0d15f6..84c7340 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Manage the various aspects of your business or association (contacts, invoices, orders, stocks, agenda, etc...).", "fr": "Gérez les différents aspects de votre activité pro ou associative (contacts, factures, commandes, stocks, agenda, etc...)." }, - "version": "12.0.3~ynh1", + "version": "12.0.3~ynh2", "url": "https://www.dolibarr.org/", "license": "GPL-3.0-or-later", "maintainer": {