Do not leave dangling symlinks behind after purge
This commit is contained in:
parent
86a23e2ba3
commit
0e43ba3ff5
2 changed files with 3 additions and 5 deletions
3
debian/gitlab.links
vendored
3
debian/gitlab.links
vendored
|
@ -13,3 +13,6 @@ usr/share/javascript/clipboard/clipboard.js usr/share/gitlab/vendor/assets/javas
|
|||
usr/share/javascript/chartjs/Chart.js usr/share/gitlab/vendor/assets/javascripts/chart-lib.min.js
|
||||
usr/share/javascript/graphael/g.raphael-min.js usr/share/gitlab/vendor/assets/javascripts/g.raphael-min.js
|
||||
usr/share/javascript/graphael/g.bar-min.js usr/share/gitlab/vendor/assets/javascripts/g.bar-min.js
|
||||
|
||||
/var/lib/gitlab/.secret /usr/share/gitlab/.secret
|
||||
/var/lib/gitlab/Gemfile.lock /usr/share/gitlab/Gemfile.lock
|
||||
|
|
5
debian/postinst
vendored
5
debian/postinst
vendored
|
@ -209,11 +209,6 @@ EOF
|
|||
|
||||
# Create Gemfile.lock and .secret in /var/lib/gitlab
|
||||
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 ! [ -e ${gitlab_app_root}/.secret ] ; then
|
||||
ln -sf ${gitlab_data_dir}/.secret ${gitlab_app_root}/.secret
|
||||
fi
|
||||
|
||||
echo "Verifying we have all required libraries..."
|
||||
su ${gitlab_user} -s /bin/sh -c 'bundle install --local'
|
||||
|
|
Loading…
Reference in a new issue