fix hostname condition

This commit is contained in:
Praveen Arimbrathodiyil 2016-01-23 23:56:02 +05:30
parent e77afc3a96
commit 8312c51259

5
debian/postinst vendored
View file

@ -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