first commit

This commit is contained in:
2025-03-11 17:40:10 +03:00
commit 2c79a515d8
4 changed files with 104 additions and 0 deletions

26
docker/run.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
if ! [ -d /var/run/yggdrasil ]
then
install -d -o yggdrasil -g yggdrasil /run/yggdrasil /var/run/yggdrasil
fi
if ! [ -f /etc/yggdrasil/yggdrasil.conf ]
then
mkdir -p /etc/yggdrasil/
yggdrasil -genconf > /etc/yggdrasil/yggdrasil.conf
fi
# Show node address
until yggdrasilctl getself | grep -v "^[[:digit:]]"
do
sleep 5
done &
peers_updater --config /etc/yggdrasil/yggdrasil.conf --update_cfg --number 5
gosu yggdrasil /usr/sbin/yggdrasil -useconffile /etc/yggdrasil/yggdrasil.conf