Skip to content

Commit a709d59

Browse files
committed
Change permissions of gitolite and yml.
1 parent e7ba38e commit a709d59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
7474
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
7575
sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /home/gitlab/gitlab/config/gitlab.yml
7676

77+
# Tighten security
78+
sudo -u git chmod 750 /home/git/gitolite
79+
sudo -u gitlab chmod 660 /home/gitlab/gitlab/config/*.yml
80+
7781
# Gitlab installation test (optional)
7882
# sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
7983
# sudo -u gitlab bundle exec rails s -e production

0 commit comments

Comments
 (0)