2016-06-09 12:48:54 -04:00
|
|
|
#!/bin/bash
|
2019-01-07 01:04:17 -05:00
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $TRACE ]] && set -x
|
2015-05-03 22:21:32 +02:00
|
|
|
|
2016-06-09 12:48:54 -04:00
|
|
|
if [[ -e /usr/share/debconf/confmodule ]]; then
|
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
fi
|
2015-05-03 22:21:32 +02:00
|
|
|
|
|
|
|
|
readonly ACTION="${1:-configure}"
|
|
|
|
|
readonly VERSION="${2:-dev}"
|
|
|
|
|
|
2018-09-30 15:33:42 -04:00
|
|
|
db_input "high" "dokku/nginx_enable" || true
|
2015-05-03 22:21:32 +02:00
|
|
|
db_input "high" "dokku/hostname" || true
|
|
|
|
|
db_input "high" "dokku/vhost_enable" || true
|
|
|
|
|
if [ "$ACTION" != "reconfigure" ]; then
|
|
|
|
|
db_input "high" "dokku/key_file" || true
|
|
|
|
|
fi
|
|
|
|
|
db_go || true
|