prosody: fix owner for /config dir

pull/29/head
netaskd 6 years ago committed by Saúl Ibarra Corretgé
parent 5c0776b8ed
commit b8faa26e75
  1. 7
      prosody/rootfs/etc/cont-init.d/10-config

@ -3,8 +3,11 @@
PROSODY_CFG="/config/prosody.cfg.lua"
if [[ ! -d /config/data ]]; then
mkdir -p /config/data
chmod 777 /config/data
mkdir -pm 750 /config/data
fi
if [[ "$(stat -c %U /config)" != "prosody" ]]; then
chown -R prosody /config
fi
if [[ ! -f $PROSODY_CFG ]]; then

Loading…
Cancel
Save