ng: Add FIXME wrt failure to start if data directory owned by root

This commit is contained in:
Kim Alvefur 2023-03-21 18:34:20 +01:00
parent 1c79b49c74
commit aa886a0b49

View file

@ -3,6 +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
fi
if [[ "$(stat -c %u /var/run/prosody/)" != "$data_dir_owner" ]]; then