create .secret in /var/lib/gitlab
This commit is contained in:
parent
a4e59c05d8
commit
2e61a668a2
1 changed files with 4 additions and 2 deletions
6
debian/postinst
vendored
6
debian/postinst
vendored
|
@ -130,11 +130,13 @@ case "$1" in
|
|||
. /usr/lib/gitlab/scripts/grantpriv.sh
|
||||
|
||||
# Remove Gemfile.lock if present
|
||||
rm -f ${gitlab_app_root}/Gemfile.lock
|
||||
rm -f ${gitlab_data_dir}/Gemfile.lock
|
||||
|
||||
# Create Gemfile.lock 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}/.secret"
|
||||
ln -s ${gitlab_data_dir}/Gemfile.lock ${gitlab_app_root}/Gemfile.lock
|
||||
ln -s ${gitlab_data_dir}/.secret ${gitlab_app_root}/.secret
|
||||
|
||||
echo "Verifying we have all required libraries..."
|
||||
su ${gitlab_user} -s /bin/sh -c 'bundle install --local'
|
||||
|
|
Loading…
Add table
Reference in a new issue