Skip to content

Commit

Permalink
Docs: Change FAQ and docker-compose.example.yml to set correct permis…
Browse files Browse the repository at this point in the history
…sions for php user

The `php` image was  changed to `alpine` base in #13. The `www-data` user in `alpine` is `82`, in contrast to `debian`'s which is `33`.
  • Loading branch information
leojonathanoh committed Sep 29, 2022
1 parent f56dc4a commit 5545b30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ docker volume rm asp_db-volume
Solution: Grant `php`'s `www-data` user write permission for `config.php`.

```sh
chown 33:33 ./config/ASP/config.php
chown 82:82 ./config/ASP/config.php
chmod 666 ./config/ASP/config.php
docker-compose restart php
```
8 changes: 4 additions & 4 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ services:
set -eu
echo "Granting php's 'www-data' user write permissions"
chown -R 33:33 /src/ASP/system/backups
chown -R 82:82 /src/ASP/system/backups
find /src/ASP/system/backups -type d -exec chmod 750 {} \;
find /src/ASP/system/backups -type f -exec chmod 640 {} \;
chown -R 33:33 /src/ASP/system/cache
chown -R 82:82 /src/ASP/system/cache
find /src/ASP/system/cache -type d -exec chmod 750 {} \;
find /src/ASP/system/cache -type f -exec chmod 640 {} \;
chown -R 33:33 /src/ASP/system/logs
chown -R 82:82 /src/ASP/system/logs
find /src/ASP/system/logs -type d -exec chmod 750 {} \;
find /src/ASP/system/logs -type f -exec chmod 640 {} \;
mkdir -p /src/ASP/system/snapshots/failed
mkdir -p /src/ASP/system/snapshots/processed
mkdir -p /src/ASP/system/snapshots/unauthorized
mkdir -p /src/ASP/system/snapshots/unprocessed
chown -R 33:33 /src/ASP/system/snapshots
chown -R 82:82 /src/ASP/system/snapshots
find /src/ASP/system/snapshots -type d -exec chmod 750 {} \;
find /src/ASP/system/snapshots -type f -exec chmod 640 {} \;
Expand Down

0 comments on commit 5545b30

Please sign in to comment.