Files
meshing-around/script/docker/entrypoint.sh
2025-10-23 21:21:43 -07:00

13 lines
350 B
Bash

#!/bin/bash
# if /app/logs is not writable, change ownership
if [ -w /app/logs ]; then
chown -R appuser:appuser /app/logs
fi
# if /app/data is not writable, change ownership
if [ -w /app/data ]; then
chown -R appuser:appuser /app/data
fi
# Run the bot as appuser (if you want to drop privileges)
exec su appuser -c "python /app/mesh_bot.py"