fix hostname condition
This commit is contained in:
parent
e77afc3a96
commit
8312c51259
1 changed files with 4 additions and 1 deletions
5
debian/postinst
vendored
5
debian/postinst
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue