make docker init script chown command verbose

This commit is contained in:
Dmitry Verkhoturov
2021-05-24 17:16:53 -05:00
committed by Umputun
parent 4f2db3cdf6
commit 82387729a4
+2 -1
View File
@@ -9,7 +9,8 @@ if [ -n "${SITE_ID}" ]; then
fi
if [ -d "/srv/var" ]; then
chown -R app:app /srv/var 2>/dev/null
echo "changing ownership of /srv/var to app:app (remark42 user inside the container)"
chown -R app:app /srv/var || echo "WARNING: /srv/var ownership change failed, if application will fail that might be the reason"
else
echo "ERROR: /srv/var doesn't exist, which means that state of the application"
echo "ERROR: will be lost on container stop or restart."