mirror of
https://github.com/Qortal/qortal.git
synced 2026-04-27 12:09:23 +00:00
31 lines
790 B
Bash
31 lines
790 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ ! -d /qortal ]; then
|
|
mkdir -p /qortal || true
|
|
fi
|
|
|
|
if [ ! -w /qortal ]; then
|
|
echo "ERROR: /qortal is not writable by uid:gid $(id -u):$(id -g)." >&2
|
|
echo "ERROR: Ensure host bind path ownership/permissions allow writes (e.g. chown/chmod on qortal/data)." >&2
|
|
ls -ld /qortal >&2 || true
|
|
exit 70
|
|
fi
|
|
|
|
if [ ! -d /qortal ]; then
|
|
mkdir -p /qortal || true
|
|
fi
|
|
|
|
if [ ! -w /qortal ]; then
|
|
echo "ERROR: /qortal is not writable by uid:gid $(id -u):$(id -g)." >&2
|
|
echo "ERROR: Ensure host bind path ownership/permissions allow writes (e.g. chown/chmod on qortal/data)." >&2
|
|
ls -ld /qortal >&2 || true
|
|
exit 70
|
|
fi
|
|
|
|
if [ ! -f /qortal/settings.json ]; then
|
|
printf '{}\n' > /qortal/settings.json
|
|
fi
|
|
|
|
exec /usr/local/bin/docker-start.sh "$@"
|