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": { diff --git a/scripts/install b/scripts/install index 5558e7a..f5286fa 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" @@ -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 #================================================= 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..18177d7 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" @@ -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 #=================================================