2022-09-28 22:32:31 -04:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
|
|
|
wd=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
2022-09-29 00:47:26 -04:00
|
|
|
git pull --all
|
2022-09-28 22:32:31 -04:00
|
|
|
## AUTH_KEY variable is in this file, edit it
|
2022-09-28 23:00:16 -04:00
|
|
|
. "${wd}/env.sh"
|
2022-09-29 02:23:54 -04:00
|
|
|
if [ "${AUTH_KEY}" = "0" ]; then
|
2022-09-29 02:29:55 -04:00
|
|
|
if [ ! -d ../../cblgh/cerca ]; then
|
|
|
|
git clone https://github.com/eyedeekay/cerca ../../cblgh/cerca
|
|
|
|
fi
|
2022-09-29 02:43:19 -04:00
|
|
|
if [ ! -f "${wd}/about.i2p" ]; then
|
2022-09-29 02:42:59 -04:00
|
|
|
go build
|
|
|
|
fi
|
2022-09-29 01:44:00 -04:00
|
|
|
export AUTH_KEY=$(./about.i2p -genauthkey)
|
|
|
|
fi
|
2022-09-28 22:32:31 -04:00
|
|
|
docker build -t eyedeekay/about.i2p .
|
|
|
|
docker rm -f about.i2p
|
2022-09-29 01:30:18 -04:00
|
|
|
mkdir -p "${HOME}/abouti2p"
|
2022-09-29 01:33:14 -04:00
|
|
|
docker run -d --net=host --restart=always --user=user --name=about.i2p --volume="${HOME}/abouti2p":/home/user/about.i2p eyedeekay/about.i2p about.i2p --authkey="${AUTH_KEY}"
|
|
|
|
docker logs -f about.i2p
|