From 46c7d8d897c85039c75c6d7643b9966c5b79960c Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Mon, 25 Dec 2017 23:50:56 +0530 Subject: [PATCH] fix permissions for .gitlab_shell_secret --- debian/rake-tasks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index 1eb7c328d4..7762cc5ef1 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -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"