make docker init script chown command verbose
This commit is contained in:
committed by
Umputun
parent
4f2db3cdf6
commit
82387729a4
+2
-1
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user