From 8312c512594d659f1f09b4a4a60ba2ee375f694d Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Sat, 23 Jan 2016 23:56:02 +0530 Subject: [PATCH] fix hostname condition --- debian/postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index a1e5941ba8..f3a9b0e61c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -48,7 +48,7 @@ case "$1" in su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"' cd ${gitlab_home} db_get gitlab/fqdn - if [ "${RET}" = "true" ]; then + if [ "${RET}" != "" ]; then db_go if ! grep GITLAB_HOST /etc/gitlab/gitlab-debian.conf then @@ -57,6 +57,9 @@ case "$1" in echo export GITLAB_EMAIL_DISPLAY_NAME="Gitlab" >> /etc/gitlab/gitlab-debian.conf echo export GITLAB_EMAIL_REPLY_TO="no-reply@${RET}" >> /etc/gitlab/gitlab-debian.conf fi + else + echo "Failed to retrieve fully qualified domain name" + exit 1 fi db_stop