2022-03-13 16:35:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ $# -ne 4 ]; then
|
|
|
|
echo "$0 host [args for alpine-install-on-disk.sh]"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
host=$1; shift
|
|
|
|
|
|
|
|
disk=$1; shift
|
|
|
|
key=$1; shift
|
|
|
|
mode=$1; shift
|
|
|
|
|
|
|
|
cat <<EOF | ssh -t root@$host
|
|
|
|
echo nameserver 2a0a:e5c0:10:a::a > /etc/resolv.conf
|
2022-04-01 13:26:19 +00:00
|
|
|
apk update
|
|
|
|
apk add git sfdisk sudo wget
|
2022-03-13 16:35:31 +00:00
|
|
|
cd /opt
|
|
|
|
if [ ! -d /opt/ungleich-tools ]; then git clone https://code.ungleich.ch/ungleich-public/ungleich-tools.git; fi
|
|
|
|
/opt/ungleich-tools/alpine-install-on-disk.sh $disk $key $mode
|
|
|
|
|
|
|
|
EOF
|