Files
meshing-around/script/docker/entrypoint.sh
2025-10-23 22:18:56 -07:00

11 lines
386 B
Bash

#!/bin/bash
# if no config.ini exists, copy the default one
if [ ! -f /app/config.ini ]; then
cp config.template config.ini
sed -i '' -e '/^\[interface\]/,/^[^[]/ s/type = .*/type = tcp/' -e '/^\[interface\]/,/^[^[]/ s/hostname = .*/hostname = localhost:4403/' script/docker/config.ini
fi
# Run the bot as appuser (if you want to drop privileges)
exec python /app/mesh_bot.py