From c9ecf5398d118704236a141e1de02b46d001c495 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Sat, 14 Sep 2024 09:01:48 -0400 Subject: [PATCH] ensure user config file perms are correct --- README.md | 1 + readme-vars.yml | 1 + root/etc/s6-overlay/s6-rc.d/init-cops-config/run | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d1b51c..c5f0adf 100644 --- a/README.md +++ b/README.md @@ -310,6 +310,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **14.09.24:** - Ensure user config files have the right permissions. * **09.09.24:** - In COPS 3.x, the config_local.php is being moved over to config/local.php and this container will automatically migrate it. Existing users should verify: config_local.php and/or config/local.php - define $config['cops_kepubify_path'] if they want to use it * **28.08.24:** - Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77 * **24.06.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings. diff --git a/readme-vars.yml b/readme-vars.yml index 1726347..284f083 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -66,6 +66,7 @@ app_setup_block: | # changelog changelogs: + - { date: "14.09.24:", desc: "Ensure user config files have the right permissions." } - { date: "09.09.24:", desc: "In COPS 3.x, the config_local.php is being moved over to config/local.php and this container will automatically migrate it. Existing users should verify: config_local.php and/or config/local.php - define $config['cops_kepubify_path'] if they want to use it" } - { date: "28.08.24:", desc: "Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77" } - { date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings." } diff --git a/root/etc/s6-overlay/s6-rc.d/init-cops-config/run b/root/etc/s6-overlay/s6-rc.d/init-cops-config/run index f1c98e0..c631ac4 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-cops-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-cops-config/run @@ -34,7 +34,8 @@ fi # copy extra user-profiles for f in /config/config/local*.php; do - cp "$f" /app/www/public/config/ + cp "${f}" /app/www/public/config/ + chmod +r "/app/www/public/config/$(basename ${f})" done # permissions