mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
install curl before trying to install docker
This commit is contained in:
parent
33785246f1
commit
8072344e85
1 changed files with 21 additions and 0 deletions
|
|
@ -89,6 +89,24 @@ function log_for_sentry() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Check to see curl is installed.
|
||||
function verify_curl_installed() {
|
||||
if command_exists curl; then
|
||||
return 0
|
||||
fi
|
||||
log_error "CURL NOT INSTALLED"
|
||||
echo -n
|
||||
if ! confirm "> Would you like to install Curl? This will run 'apt update && apt upgrade && apt install curl | sh'. [Y/n] "; then
|
||||
exit 0
|
||||
fi
|
||||
if ! run_step "Installing Curl" install_curl; then
|
||||
log_error "Curl installation failed."
|
||||
exit 1
|
||||
fi
|
||||
echo -n "> Verifying Curl installation................ "
|
||||
command_exists curl
|
||||
}
|
||||
|
||||
# Check to see if docker is installed.
|
||||
function verify_docker_installed() {
|
||||
if command_exists docker; then
|
||||
|
|
@ -118,6 +136,9 @@ function verify_docker_running() {
|
|||
fi
|
||||
}
|
||||
|
||||
function install_curl() {
|
||||
apt update && apt upgrade && apt install curl | sh > /dev/null 2>&1
|
||||
}
|
||||
function install_docker() {
|
||||
curl -sS https://get.docker.com/ | sh > /dev/null 2>&1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue