Attempt adding Arch Linux.
This commit is contained in:
parent
470f0701ae
commit
cf6948cd44
8
bin/install.sh
Executable file → Normal file
8
bin/install.sh
Executable file → Normal file
@ -17,6 +17,8 @@ if [[ "$os" == *"Debian"* ]]; then
|
|||||||
elif [[ "$os" == *"Ubuntu"* ]]; then
|
elif [[ "$os" == *"Ubuntu"* ]]; then
|
||||||
repo="ubuntu"
|
repo="ubuntu"
|
||||||
pkgmgr="apt"
|
pkgmgr="apt"
|
||||||
|
elif [[ $os == "Arch Linux" ]]; then
|
||||||
|
pkgmgr="pacman"
|
||||||
else
|
else
|
||||||
echo "Distribution not yet supported." &&
|
echo "Distribution not yet supported." &&
|
||||||
exit 1
|
exit 1
|
||||||
@ -40,6 +42,12 @@ if [[ "$pkgmgr" == "apt" ]]; then
|
|||||||
apt update &&
|
apt update &&
|
||||||
apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin &&
|
apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin &&
|
||||||
|
|
||||||
|
echo "Success!" &&
|
||||||
|
exit 0
|
||||||
|
elif [[ $pkgmgr == "pacman" ]]; then
|
||||||
|
pacman -Rcns --noconfirm *docker*
|
||||||
|
|
||||||
|
pacman -Sy --noconfirm docker docker-compose &&
|
||||||
echo "Success!" &&
|
echo "Success!" &&
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user