Skip to content

Commit c9ecf53

Browse files
committed
ensure user config file perms are correct
1 parent d33843a commit c9ecf53

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
310310

311311
## Versions
312312

313+
* **14.09.24:** - Ensure user config files have the right permissions.
313314
* **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
314315
* **28.08.24:** - Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77
315316
* **24.06.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ app_setup_block: |
6666
6767
# changelog
6868
changelogs:
69+
- { date: "14.09.24:", desc: "Ensure user config files have the right permissions." }
6970
- { 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" }
7071
- { date: "28.08.24:", desc: "Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77" }
7172
- { date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings." }

root/etc/s6-overlay/s6-rc.d/init-cops-config/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ fi
3434

3535
# copy extra user-profiles
3636
for f in /config/config/local*.php; do
37-
cp "$f" /app/www/public/config/
37+
cp "${f}" /app/www/public/config/
38+
chmod +r "/app/www/public/config/$(basename ${f})"
3839
done
3940

4041
# permissions

0 commit comments

Comments
 (0)