mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-27 03:42:01 +00:00
Merge 8072344e85 into de566bfc9f
This commit is contained in:
commit
5b650a5112
1 changed files with 21 additions and 0 deletions
|
|
@ -123,6 +123,24 @@ function log_for_sentry() {
|
|||
echo "$@" >> "${FULL_LOG}"
|
||||
}
|
||||
|
||||
# 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
|
||||
|
|
@ -157,6 +175,9 @@ function fetch() {
|
|||
curl --silent --show-error --fail "$@"
|
||||
}
|
||||
|
||||
function install_curl() {
|
||||
apt update && apt upgrade && apt install curl | sh > /dev/null 2>&1
|
||||
}
|
||||
function install_docker() {
|
||||
(
|
||||
# Change umask so that /usr/share/keyrings/docker-archive-keyring.gpg has the right permissions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue