Create target file of secrets.yml symbolic link

This commit is contained in:
Pirate Praveen 2019-03-06 19:57:08 +05:30
parent a7e56fdfcc
commit f01e92ca67

View file

@ -18,6 +18,7 @@ if [ "$db_relations" = "No relations found." ] || \
"cp ${gitlab_data_dir}/db/schema.rb.template ${gitlab_data_dir}/db/schema.rb"
runuser -u ${gitlab_user} -- sh -c \
"touch ${gitlab_data_dir}/.gitlab_shell_secret"
runuser -u ${gitlab_user} -- sh -c 'touch /var/lib/gitlab/secrets.yml'
runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake db:schema:load'
else
echo "gitlab_production database is not empty, skipping gitlab setup"