diff options
| author | Patrick Spek <p.spek@tyil.nl> | 2025-11-15 17:46:15 +0100 |
|---|---|---|
| committer | Patrick Spek <p.spek@tyil.nl> | 2025-11-15 17:46:25 +0100 |
| commit | 43851fe68fd8a921cbc7e94c8918e367d3a4a34b (patch) | |
| tree | cdf9063a1ce8e59c4baa5e9a08dfb757bf2d0372 | |
| parent | 6024352768fdbe0b952ed72a0f11930062c21c56 (diff) | |
| download | prosody-master.tar.gz prosody-master.tar.bz2 | |
| -rw-r--r-- | entrypoint.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/entrypoint.sh b/entrypoint.sh index d96fe06..9b5a89a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,8 +3,7 @@ set -e data_dir_owner="$(stat -c %u "/var/lib/prosody/")" if [[ "$(id -u prosody)" != "$data_dir_owner" ]]; then - # FIXME this fails if owned by root - usermod -u "$data_dir_owner" prosody + usermod -R prosody:prosody "/var/lib/prosody" fi if [[ "$(stat -c %u /var/run/prosody/)" != "$data_dir_owner" ]]; then chown "$data_dir_owner" /var/run/prosody/ |
