Compare commits

..

2 Commits

Author SHA1 Message Date
04ce231be0
Install requirements via install script
All checks were successful
continuous-integration/drone/pr Build is passing
Closes https://git.autonomic.zone/coop-cloud/abra/issues/196.
2021-07-05 23:41:46 +02:00
32bf28e7a9
Follow our usual convention of writing it now 2021-07-05 23:41:45 +02:00
2 changed files with 10 additions and 5 deletions

View File

@ -22,6 +22,7 @@ steps:
- name: test installation script
image: debian:buster
commands:
- apt update && apt install -yqq sudo
- deploy/install.abra.coopcloud.tech/installer --no-prompt
- name: publish image

View File

@ -194,6 +194,8 @@ function install_abra_dev {
}
function run_installation {
show_banner
DOCOPT_PREFIX=installer_
DOCOPT_ADD_HELP=false
eval "$(docopt "$@")"
@ -202,17 +204,19 @@ function run_installation {
no_prompt="$installer___no_prompt"
no_deps="$installer___no_deps"
show_banner
if [ "$no_deps" == "false" ]; then
install_requirements
fi
if ! type curl > /dev/null 2>&1; then
error "'curl' program is not installed, cannot continue..."
fi
if [ "$dev" == "true" ]; then
install_abra_dev
else
install_abra_release
fi
if [ "$no_deps" == "false" ]; then
install_requirements
fi
}
run_installation "$@"