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