Check that the confmodule is sourceable before sourcing it

This commit is contained in:
Jose Diaz-Gonzalez
2016-06-09 12:48:54 -04:00
parent eab69bd6d5
commit 79a7342808
4 changed files with 20 additions and 8 deletions

5
debian/postinst vendored
View File

@@ -1,7 +1,10 @@
#!/bin/bash
set -eo pipefail; [[ $TRACE ]] && set -x
. /usr/share/debconf/confmodule
if [[ -e /usr/share/debconf/confmodule ]]; then
# shellcheck disable=SC1091
. /usr/share/debconf/confmodule
fi
readonly DOKKU_ROOT="${DOKKU_ROOT:-/home/dokku}"
readonly DOKKU_LIB_ROOT="${DOKKU_LIB_PATH:-/var/lib/dokku}"