Skip to content

Commit 36ad93e

Browse files
committed
Remove sudo where not needed
1 parent 212a3d1 commit 36ad93e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install/centos/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,23 +421,23 @@ NOTE: set to something like "host all all 127.0.0.1/3
421421
sudo -u git -H editor config/gitlab.yml
422422

423423
# Make sure GitLab can write to the log/ and tmp/ directories
424-
sudo chown -R git log/
425-
sudo chown -R git tmp/
426-
sudo chmod -R u+rwX log/
427-
sudo chmod -R u+rwX tmp/
424+
chown -R git log/
425+
chown -R git tmp/
426+
chmod -R u+rwX log/
427+
chmod -R u+rwX tmp/
428428

429429
# Create directory for satellites
430430
sudo -u git -H mkdir /home/git/gitlab-satellites
431431

432432
# Create directories for sockets/pids and make sure GitLab can write to them
433433
sudo -u git -H mkdir tmp/pids/
434434
sudo -u git -H mkdir tmp/sockets/
435-
sudo chmod -R u+rwX tmp/pids/
436-
sudo chmod -R u+rwX tmp/sockets/
435+
chmod -R u+rwX tmp/pids/
436+
chmod -R u+rwX tmp/sockets/
437437

438438
# Create public/uploads directory otherwise backup will fail
439439
sudo -u git -H mkdir public/uploads
440-
sudo chmod -R u+rwX public/uploads
440+
chmod -R u+rwX public/uploads
441441

442442
# Copy the example Unicorn config
443443
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb

0 commit comments

Comments
 (0)