Update setup-alpine.sh

This commit is contained in:
ahoemann 2025-04-17 21:47:30 +02:00
parent 8abc3cb13f
commit 2a24f92494

View file

@ -2,12 +2,12 @@
wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" alpine.iso
if [ -f /dev/sda ]; then
if [ -f /dev/sda && -f alpine.iso ]; then
dd if=alpine.iso of=/dev/sda
reboot
elif
elif [ -f /dev/vda -f alpine.iso ]; then
dd if=alpine.iso of=/dev/vda
reboot
else
exit 1
fi
reboot