mc: add diagnostic log at start to confirm user and /data details

This commit is contained in:
Geoff Bourne 2018-07-18 20:10:22 -05:00
parent c8cc882a57
commit 4c0d53ee92

View file

@ -24,8 +24,10 @@ if [ ! -e /data/eula.txt ]; then
fi
fi
echo "Running as '$(id -u):$(id -g)' with /data as '$(ls -lnd /data)'"
if ! touch /data/.verify_access; then
echo "ERROR: /data doesn't seem to be writable. Please make sure attached directory is writable by uid=${UID} "
echo "ERROR: /data doesn't seem to be writable. Please make sure attached directory is writable by uid=$(id -u)"
exit 2
fi