Skip to content

Commit d2134c9

Browse files
committed
Fix directory permissions, remove unnecessary dir creation
1 parent 3f784a9 commit d2134c9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

install/centos/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,15 +451,13 @@ authentication methods.
451451

452452
# Create directory for satellites
453453
sudo -u git -H mkdir /home/git/gitlab-satellites
454+
chmod u+rwx,g+rx,o-rwx /home/git/gitlab-satellites
454455

455-
# Create directories for sockets/pids and make sure GitLab can write to them
456-
sudo -u git -H mkdir tmp/pids/
457-
sudo -u git -H mkdir tmp/sockets/
456+
# Make sure GitLab can write to the tmp/pids/ and tmp/sockets/ directories
458457
chmod -R u+rwX tmp/pids/
459458
chmod -R u+rwX tmp/sockets/
460459

461-
# Create public/uploads directory otherwise backup will fail
462-
sudo -u git -H mkdir public/uploads
460+
# Make sure GitLab can write to the public/uploads/ directory
463461
chmod -R u+rwX public/uploads
464462

465463
# Copy the example Unicorn config

0 commit comments

Comments
 (0)