Update entrypoint.sh

This commit is contained in:
SpudGunMan
2025-10-23 23:29:26 -07:00
parent 1d577c9ec5
commit 8c3121d5d6

View File

@@ -10,7 +10,7 @@ if [ ! -f /app/config.ini ]; then
# Remove any commented or uncommented hostname lines in [interface]
sed -i '/^\[interface\]/,/^[^[]/ s/^#\? *hostname = .*$//' /app/config.ini
# Add hostname = meshtasticd:4403 after [interface]
sed -i '/^\[interface\]/a hostname = meshtasticd:4403' /app/config.ini
sed -i '/^\[interface\]/a hostname = UPDATE-DOCKER-IP' /app/config.ini
fi
# Run the bot as appuser (if you want to drop privileges)
exec python /app/mesh_bot.py