Skip to content

Commit

Permalink
Tests: Fix vagrant test on debian
Browse files Browse the repository at this point in the history
Debian asks during installation, if the configuration file should be updated.
This is asked via a prompt and thus hangs.

This adds an option to always update to the newer config file, so automated
installation keeps working.
  • Loading branch information
spinscale committed Mar 24, 2016
1 parent bb364cc commit baec7bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ install_package() {
case $opt in
u)
rpmCommand='-U'
dpkgCommand='--force-confnew'
;;
v)
version=$OPTARG
Expand All @@ -60,7 +61,7 @@ install_package() {
if is_rpm; then
rpm $rpmCommand elasticsearch-$version.rpm
elif is_dpkg; then
dpkg -i elasticsearch-$version.deb
dpkg $dpkgCommand -i elasticsearch-$version.deb
else
skip "Only rpm or deb supported"
fi
Expand Down

0 comments on commit baec7bc

Please sign in to comment.