Magic!
This commit is contained in:
parent
35d3df0685
commit
9f9dd4b6e3
@ -26,14 +26,9 @@ attempt_install_prerequisite() {
|
||||
|
||||
# separate install for each prerequisite
|
||||
case "${prerequisite}" in
|
||||
"bash")
|
||||
$SUDO_CMD apt-get install -y bash
|
||||
;;
|
||||
"curl")
|
||||
$SUDO_CMD apt-get install -y curl
|
||||
;;
|
||||
"wget")
|
||||
$SUDO_CMD apt-get install -y wget
|
||||
bash|curl|wget)
|
||||
$SUDO_CMD apt-get update
|
||||
$SUDO_CMD apt-get install -y wget curl bash
|
||||
;;
|
||||
"docker")
|
||||
# install docker using the official script.
|
||||
@ -47,8 +42,11 @@ attempt_install_prerequisite() {
|
||||
echo "Please install it manually and try again."
|
||||
echo "--------------------------------"
|
||||
exit 1
|
||||
}
|
||||
install_prerequisites() {]
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
install_prerequisites() {
|
||||
# this script works on debian, ubuntu and Raspberry Pi OS
|
||||
# it checks the following prerequisites, and installs them if missing.
|
||||
# if the user is root it proceeds, otherwise it checks for sudo privileges.
|
||||
|
Loading…
x
Reference in New Issue
Block a user