mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Merge pull request #570 from thaJeztah/allow_downgrades
deb: set "--allow-downgrades" if a specific version is requested
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -634,7 +634,11 @@ do_install() {
|
||||
if ! is_dry_run; then
|
||||
set -x
|
||||
fi
|
||||
$sh_c "DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $pkgs >/dev/null"
|
||||
apt_flags="-y -qq"
|
||||
if [ -n "$pkg_version" ]; then
|
||||
apt_flags="$apt_flags --allow-downgrades"
|
||||
fi
|
||||
$sh_c "DEBIAN_FRONTEND=noninteractive apt-get $apt_flags install $pkgs >/dev/null"
|
||||
)
|
||||
if [ "$NO_AUTOSTART" != "1" ]; then
|
||||
start_docker_daemon
|
||||
|
||||
Reference in new issue
Block a user