2015-02-08 22:34:35 -08:00
|
|
|
#!/usr/bin/env bash
|
2014-11-16 02:59:07 -05:00
|
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
2013-10-29 14:44:48 -06:00
|
|
|
|
2014-11-13 17:37:26 +01:00
|
|
|
case "$DOKKU_DISTRO" in
|
|
|
|
|
ubuntu)
|
2015-01-13 22:42:33 -05:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2015-01-03 10:55:40 -08:00
|
|
|
[[ -z "$CIRCLECI" ]] && apt-get install -qq -y software-properties-common python-software-properties
|
|
|
|
|
[[ -n "$CIRCLECI" ]] && aptitude install -q -y software-properties-common python-software-properties
|
2014-11-13 17:37:26 +01:00
|
|
|
add-apt-repository -y ppa:nginx/stable
|
|
|
|
|
apt-get update
|
2015-01-13 22:42:33 -05:00
|
|
|
apt-get install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes -qq -y nginx dnsutils
|
2014-11-13 17:37:26 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
opensuse)
|
|
|
|
|
zypper -q in -y nginx bind-utils
|
|
|
|
|
;;
|
|
|
|
|
esac
|