moth/packages/octopus/service/octopus/run

9 lines
132 B
Bash
Executable File

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