Update setup-alpine.sh
This commit is contained in:
parent
8abc3cb13f
commit
2a24f92494
1 changed files with 4 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue