.secret may be a symlink

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-18 19:26:48 +05:30
parent ad6b514bd3
commit beb47e181f

2
debian/postinst vendored
View file

@ -136,7 +136,7 @@ case "$1" in
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock"
ln -sf ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock
if ! [ -f "${gitlab_app_root}" ]; then
if ! [ -e ${gitlab_app_root}/.secret ] ; then
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/.secret"
ln -s ${gitlab_data_dir}/.secret ${gitlab_app_root}/.secret
fi