Check web_config before key_file (Fixes #1196)

This commit is contained in:
3onyc committed 2015-05-19 15:11:06 +02:00
1 parent c5a74fac90
commit c2c18af425
1 file changed
+13 -14
+13 -14
View File
@@ -5,21 +5,8 @@ set -e
case "$1" in case "$1" in
install) install)
if [ -z "${DEBCONF_RECONFIGURE}" ]; then
db_get "dokku/key_file"
if [ ! -f "$RET" ]; then
echo "Error: keyfile '$RET' not found."
echo " you can enter a new keyfile path when you restart the installation."
db_reset "dokku/key_file"
exit 1
fi
fi
db_get "dokku/web_config" db_get "dokku/web_config"
if [ "$RET" = "false" ]; then if [ "$RET" = "true" ]; then
exit 0
fi
INIT_CONF="/etc/init/dokku-installer.conf" INIT_CONF="/etc/init/dokku-installer.conf"
NGINX_CONF="/etc/nginx/conf.d/dokku-installer.conf" NGINX_CONF="/etc/nginx/conf.d/dokku-installer.conf"
@@ -40,6 +27,18 @@ case "$1" in
rm -f /etc/nginx/sites-enabled/* rm -f /etc/nginx/sites-enabled/*
service nginx reload service nginx reload
exit 0
fi
if [ -z "${DEBCONF_RECONFIGURE}" ]; then
db_get "dokku/key_file"
if [ ! -f "$RET" ]; then
echo "Error: keyfile '$RET' not found."
echo " you can enter a new keyfile path when you restart the installation."
db_reset "dokku/key_file"
exit 1
fi
fi
;; ;;
upgrade) upgrade)