Update setup-alpine.sh
This commit is contained in:
parent
27508c8bfd
commit
429afb46c9
1 changed files with 2 additions and 4 deletions
|
@ -2,12 +2,10 @@
|
||||||
|
|
||||||
if [ wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" alpine.iso ]; then
|
if [ wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" alpine.iso ]; then
|
||||||
if [ -f /dev/sda ]; then
|
if [ -f /dev/sda ]; then
|
||||||
dd if=alpine.iso of=/dev/sda
|
dd if=alpine.iso of=/dev/sda && reboot
|
||||||
elif [ -f /dev/vda ]; then
|
elif [ -f /dev/vda ]; then
|
||||||
dd if=alpine.iso of=/dev/vda
|
dd if=alpine.iso of=/dev/vda && reboot
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reboot
|
|
Loading…
Add table
Reference in a new issue