From 06e5806853d58a57fff781b94de77a22c1efe9bc Mon Sep 17 00:00:00 2001 From: lapineige Date: Mon, 12 Jun 2023 14:14:17 +0200 Subject: [PATCH] Patch file access right (fix post 0.11.5 installs) --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 940ed481..e89873f7 100644 --- a/scripts/install +++ b/scripts/install @@ -135,6 +135,14 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1 ynh_use_logrotate --logfile="/var/log/$app/${app}-horizon.log" ynh_use_logrotate --logfile="/var/www/$app/storage/logs/laravel.log" +#================================================= +# PATCH PERMISSIONS for v0.11.5 versions and higher +#================================================= +ynh_script_progression --message="Patching permissions (for version 0.11.5 and newer)..." --weight=1 + +# Default configuration doesn't work +ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$install_dir/config/filesystems.php + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================