change ownership and more checks

This commit is contained in:
Praveen Arimbrathodiyil 2016-04-05 21:06:24 +05:30
parent c805cc9eef
commit 869a24f41e

View file

@ -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