overwrite Gemfile.lock link

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-18 19:09:00 +05:30
parent ae820c4aeb
commit ad6b514bd3

2
debian/postinst vendored
View file

@ -134,7 +134,7 @@ case "$1" in
# Create Gemfile.lock and .secret in /var/lib/gitlab # Create Gemfile.lock and .secret in /var/lib/gitlab
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock" su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/Gemfile.lock"
ln -s ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock ln -sf ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock
if ! [ -f "${gitlab_app_root}" ]; then if ! [ -f "${gitlab_app_root}" ]; then
su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/.secret" su ${gitlab_user} -s /bin/sh -c "touch ${gitlab_data_dir}/.secret"