feat: migrate away from transitional packages
Several of the packages being installed were actually transitional packages, that is, the package itself is either a complete no-op (since the package is already installed), or else the package only exists to depend on another package of a new name (to support people who are running older operating systems). For the former, we can drop the dependency entirely, and for the latter we should use the new package name directly.
This commit is contained in:
@@ -2,29 +2,11 @@
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
nginx_install() {
|
||||
declare desc="install nginx and dnsutils"
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get -qq -y --no-install-recommends install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" nginx dnsutils
|
||||
}
|
||||
|
||||
trigger-nginx-vhosts-dependencies() {
|
||||
declare desc="installs dependencies for the nginx-vhosts plugin"
|
||||
declare trigger="dependencies"
|
||||
|
||||
case "$DOKKU_DISTRO" in
|
||||
debian | raspbian)
|
||||
nginx_install
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
if command -v nginx &>/dev/null; then
|
||||
return
|
||||
fi
|
||||
|
||||
nginx_install
|
||||
;;
|
||||
|
||||
arch)
|
||||
pacman -S --noconfirm --noprogressbar --needed nginx bind-tools
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user