diff --git a/setup-alpine.answers b/setup-alpine.answers deleted file mode 100644 index 063232b..0000000 --- a/setup-alpine.answers +++ /dev/null @@ -1,24 +0,0 @@ -KEYMAPOPTS="us us" -HOSTNAMEOPTS="-n app.othostash.com" -INTERFACESOPTS="auto lo -iface lo inet loopback -auto eth0 -iface eth0 inet static - address 10.1.9.11 - netmask 255.255.255.0 - gateway 10.1.9.1 -iface eth0 inet6 static - address 2603:3015:1003:562d::dad:beef - gateway 2603:3015:1003:562d::cab:0 -" -DNSOPTS="-d othostash.com 2603:3015:1003:5621::deed:feed 2001:558:feed::1 2001:558:feed::2" -TIMEZONEOPTS="-z UTC" -PROXYOPTS=none -APKREPOSOPTS="-c1" -# Doesn't work. -#USEROPTS="-a -u -g audio,video,netdev -k 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDbhgdQui6flN1dXig81JYyWwvmD6ezwCwxHUgAwmNq+ul/hrR49A5twvEDwgSfFnkTW+ZcMHnUZPK2isbxblfKQAIybdeAZecPGaFwVx3Aktr34/ZTyt+NOPxEuPNE+IK1vDhYWLjEBlboPElqC7SQsXzrpRtusfApTIABIoP9JM9Q4n1bsHg8748Y+kXJ5Mf7trW1WCC5lw+8fOvJysI7u5iOWlIf0k7RQedaGZoMtLzxwntEyeve5vnyGQsKHVqmRyHWVWYTf5ZMktquQ0wiK0ua9keGS/iipTlNj4p5uQnnp5oS11sbiHpVy3WJaSt9BMxfg0zmBsH0EH5f6fxpgxYvajEND4UjBsBJ9Du/oMNLzrlExprLte6+TyBKrofe7oU38dbT+xE9TMbBgrryDi87e+xVjEiv/5WYJMyquQxx+cFz3BIv1AhfhiuPlR02YqfTdqkQKgKYDkhfxQ/9ZjZL49+Sr/sSuyt+3y9E/pR/iDLf6l4UknOQKH0o2RE= adamo@threadbox' caes" -SSHDOPTS="-c openssh" -NTPOPTS="-c openntpd" -DISKOPTS="-s 16384 -m sys /dev/nvme0n1" -LBUOPTS=none -APKCACHEOPTS=none diff --git a/setup-alpine.answers.dist b/setup-alpine.answers.dist new file mode 100644 index 0000000..31d8e5b --- /dev/null +++ b/setup-alpine.answers.dist @@ -0,0 +1,22 @@ +KEYMAPOPTS="us us" +HOSTNAMEOPTS="-n app.stashbox" +INTERFACESOPTS="auto lo +iface lo inet loopback +auto eth0 +iface eth0 inet static + address ip4.stashbox + netmask 255.255.255.0 + gateway gateway.stashbox +iface eth0 inet6 static + address app.stashbox + gateway gateway.stashbox +" +DNSOPTS="-d stashbox resolver.stashbox resolver2 resolver3" +TIMEZONEOPTS="-z UTC" +PROXYOPTS=none +APKREPOSOPTS="-c1" +SSHDOPTS="-c openssh" +NTPOPTS="-c openntpd" +DISKOPTS="-s 16384 -m sys /dev/nvme0n1" +LBUOPTS=none +APKCACHEOPTS=none diff --git a/setup-alpine.sh b/setup-alpine.sh index 6611f0b..2335994 100644 --- a/setup-alpine.sh +++ b/setup-alpine.sh @@ -3,7 +3,6 @@ echo "# Copypaste your answers into this file" > setup-alpine.answers vi setup-alpine.answers cat setup-alpine.answers setup-alpine -f setup-alpine.answers -## /mnt/boot is device /dev/nvme0n1p1 reboot apk add --update git docker docker-compose rsync tmux @@ -22,6 +21,11 @@ mount /sys/fs/cgroup/devices service docker start rc-update add docker boot -setup-user -a -u -g audio,video,netdev,docker -k 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDbhgdQui6flN1dXig81JYyWwvmD6ezwCwxHUgAwmNq+ul/hrR49A5twvEDwgSfFnkTW+ZcMHnUZPK2isbxblfKQAIybdeAZecPGaFwVx3Aktr34/ZTyt+NOPxEuPNE+IK1vDhYWLjEBlboPElqC7SQsXzrpRtusfApTIABIoP9JM9Q4n1bsHg8748Y+kXJ5Mf7trW1WCC5lw+8fOvJysI7u5iOWlIf0k7RQedaGZoMtLzxwntEyeve5vnyGQsKHVqmRyHWVWYTf5ZMktquQ0wiK0ua9keGS/iipTlNj4p5uQnnp5oS11sbiHpVy3WJaSt9BMxfg0zmBsH0EH5f6fxpgxYvajEND4UjBsBJ9Du/oMNLzrlExprLte6+TyBKrofe7oU38dbT+xE9TMbBgrryDi87e+xVjEiv/5WYJMyquQxx+cFz3BIv1AhfhiuPlR02YqfTdqkQKgKYDkhfxQ/9ZjZL49+Sr/sSuyt+3y9E/pR/iDLf6l4UknOQKH0o2RE= adamo@threadbox' caes + +echo "# Copypaste your env into this file" > .env +vi .env +cat .env +source .env +setup-user -a -u -g audio,video,netdev,docker -k $stashbox_user_key $stashbox_username