mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™. The command used to reprocess everything is: ```shell shfmt -l -bn -ci -i 2 -w . ```
28 lines
588 B
Bash
Executable File
28 lines
588 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
[[ $TRACE ]] && set -x
|
|
|
|
if [[ -e /usr/share/debconf/confmodule ]]; then
|
|
# shellcheck disable=SC1091
|
|
. /usr/share/debconf/confmodule
|
|
fi
|
|
|
|
readonly ACTION="${1:-configure}"
|
|
readonly VERSION="${2:-dev}"
|
|
|
|
db_input "high" "dokku/web_config" || true
|
|
db_go || true
|
|
|
|
db_get "dokku/web_config"
|
|
if [ $RET = "true" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
db_input "high" "dokku/nginx_enable" || true
|
|
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
|