change ownership and more checks
This commit is contained in:
parent
c805cc9eef
commit
869a24f41e
1 changed files with 5 additions and 1 deletions
6
debian/rake-tasks.sh
vendored
6
debian/rake-tasks.sh
vendored
|
@ -19,8 +19,12 @@ if ! [ -f "${gitlab_app_root}/config/secrets.yml" ]; then
|
|||
|
||||
# Restrict permissions for secret files
|
||||
|
||||
chown ${gitlab_user}: ${gitlab_data_dir}/.secret
|
||||
chmod 0700 ${gitlab_data_dir}/.secret
|
||||
chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
|
||||
if [ -e ${gitlab_data_dir}/.gitlab_shell_secret ]; then
|
||||
chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
|
||||
fi
|
||||
chown ${gitlab_user}: ${gitlab_conf}/secrets.yml
|
||||
chmod 0700 ${gitlab_conf}/secrets.yml
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue