mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
We've been using OS nginx for quite a while now as it's been updated significantly, so there is no need to use the official ppa anymore.
35 lines
777 B
Bash
Executable File
35 lines
777 B
Bash
Executable File
#!/usr/bin/env bash
|
|
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
|
|
;;
|
|
esac
|
|
}
|
|
|
|
trigger-nginx-vhosts-dependencies "$@"
|