mirror of
https://github.com/dokku/dokku.git
synced 2025-12-14 19:17:41 +01:00
fix: only install software-properties-common on Ubuntu and older Debian installations
Closes #7980
This commit is contained in:
committed by
GitHub
parent
438c395970
commit
3e52ea9ec6
17
bootstrap.sh
17
bootstrap.sh
@@ -128,7 +128,22 @@ install-dokku-from-source() {
|
||||
log-fail "This installation script requires apt-get. For manual installation instructions, consult https://dokku.com/docs/getting-started/advanced-installation/"
|
||||
fi
|
||||
|
||||
apt-get -qq -y --no-install-recommends install sudo git make software-properties-common
|
||||
apt-get -qq -y --no-install-recommends install sudo git make
|
||||
case "$DOKKU_DISTRO" in
|
||||
debian)
|
||||
if [[ "$DOKKU_DISTRO_VERSION" -lt "13" ]]; then
|
||||
if ! dpkg -l | grep -q software-properties-common; then
|
||||
apt-get -qq -y --no-install-recommends install software-properties-common
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
ubuntu)
|
||||
if ! dpkg -l | grep -q software-properties-common; then
|
||||
apt-get -qq -y --no-install-recommends install software-properties-common
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
cd /root
|
||||
if [[ ! -d /root/dokku ]]; then
|
||||
git clone "$DOKKU_REPO" /root/dokku
|
||||
|
||||
Reference in New Issue
Block a user