fix permissions for .gitlab_shell_secret

This commit is contained in:
Pirate Praveen 2017-12-25 23:50:56 +05:30
parent ea679071f8
commit 46c7d8d897

View file

@ -16,7 +16,8 @@ if [ "$db_relations" = "No relations found." ] || \
test -f ${gitlab_home}/db/schema.rb || \
runuser -u ${gitlab_user} -- sh -c \
"cp ${gitlab_data_dir}/db/schema.rb.template ${gitlab_data_dir}/db/schema.rb"
touch ${gitlab_data_dir}/.gitlab_shell_secret
runuser -u ${gitlab_user} -- sh -c \
"touch ${gitlab_data_dir}/.gitlab_shell_secret"
runuser -u ${gitlab_user} -- sh -c 'bundle exec rake db:schema:load'
else
echo "gitlab_production database is not empty, skipping gitlab setup"