1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 04:51:06 -07:00
moth/packages/octopus/service/octopus/run
2011-10-13 21:24:29 -06:00

8 lines
142 B
Bash
Executable file

#! /bin/sh -e
exec 2>&1
IP=$(cat ip.txt)
ip addr add $IP dev eth0 || true
exec /opt/octopus/bin/octopus ${IP%/*} < /opt/octopus/tokens.txt