Files
OmniRoute/scripts/check-permissions.sh
Markus Hartung 0c6c5e212e fix: Error: Unable to inspect existing database #2771 (#2795)
Integrated into release/v3.8.6
2026-05-27 17:04:13 -03:00

13 lines
303 B
Bash
Executable File

#!/bin/sh
set -e
if [ -d "/app/data" ] && [ ! -w "/app/data" ]; then
echo "WARNING: /app/data is not writable by the current user (UID $(id -u))."
echo "Run this on the Docker host to fix:"
echo " sudo chown -R 1000:1000 ./data"
echo " chmod -R u+rwX ./data"
exit 1
fi
exec "$@"