diff --git a/script/docker/entrypoint.sh b/script/docker/entrypoint.sh index 974722d..623888a 100644 --- a/script/docker/entrypoint.sh +++ b/script/docker/entrypoint.sh @@ -6,7 +6,9 @@ if [ ! -f /app/config.ini ]; then fi # if using docker, set interface type to tcp and hostname to meshtasticd:4403 if [ -f /app/config.ini ]; then - sed -i '/^\[interface\]/,/^[^[]/ s/type = .*/type = tcp/' -e '/^\[interface\]/,/^[^[]/ s/hostname = .*/hostname = meshtasticd:4403/' /app/config.ini + ls -l /app/config.ini + dos2unix /app/config.ini 2>/dev/null || true + sed -i.bak '/^\[interface\]/,/^[^[]/ s/type = .*/type = tcp/' -e '/^\[interface\]/,/^[^[]/ s/hostname = .*/hostname = meshtasticd:4403/' /app/config.ini fi # Run the bot as appuser (if you want to drop privileges) exec python /app/mesh_bot.py