mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
Update entrypoint.sh
This commit is contained in:
@@ -7,7 +7,8 @@ fi
|
||||
# if using docker, set interface type to tcp and hostname to meshtasticd:4403
|
||||
if [ -f /app/config.ini ]; then
|
||||
ls -l /app/config.ini
|
||||
sed -i.bak '/^\[interface\]/,/^[^[]/ s/type = .*/type = tcp/' -e '/^\[interface\]/,/^[^[]/ s/hostname = .*/hostname = meshtasticd:4403/' /app/config.ini
|
||||
sed -i '/^\[interface\]/,/^[^[]/ s/type = .*/type = tcp/' /app/config.ini
|
||||
sed -i '/^\[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
|
||||
|
||||
Reference in New Issue
Block a user