You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
353 B
Bash

#!/bin/sh
echo 'nameserver 127.3.2.1' > /etc/resolv.conf
nohup /lokinet/build/daemon/lokinet &
address=""
if [ -e data/address.txt ]; then
address=`cat data/address.txt`
else
sleep 90s
address=`curl -s http://probably.loki/echo.sh`
echo "$address" > data/address.txt
fi
echo "Here is your address: $address"
./caddy run --config ./data/Caddyfile