Commit ad3a3e5201a38484bd2db17f40bc84dd55faf87b

Authored by Dmitriy Zaporozhets
2 parents 14b68586 34c5e6de

Merge pull request #6658 from tsigo/rs-important-dirs

Make sure important directories exist in git
doc/install/installation.md
@@ -197,21 +197,18 @@ You can change `6-6-stable` to `master` if you want the *bleeding edge* version, @@ -197,21 +197,18 @@ You can change `6-6-stable` to `master` if you want the *bleeding edge* version,
197 # Make sure GitLab can write to the log/ and tmp/ directories 197 # Make sure GitLab can write to the log/ and tmp/ directories
198 sudo chown -R git log/ 198 sudo chown -R git log/
199 sudo chown -R git tmp/ 199 sudo chown -R git tmp/
200 - sudo chmod -R u+rwX log/  
201 - sudo chmod -R u+rwX tmp/ 200 + sudo chmod -R u+rwX log/
  201 + sudo chmod -R u+rwX tmp/
202 202
203 # Create directory for satellites 203 # Create directory for satellites
204 sudo -u git -H mkdir /home/git/gitlab-satellites 204 sudo -u git -H mkdir /home/git/gitlab-satellites
205 sudo chmod u+rwx,g+rx,o-rwx /home/git/gitlab-satellites 205 sudo chmod u+rwx,g+rx,o-rwx /home/git/gitlab-satellites
206 206
207 - # Create directories for sockets/pids and make sure GitLab can write to them  
208 - sudo -u git -H mkdir tmp/pids/  
209 - sudo -u git -H mkdir tmp/sockets/  
210 - sudo chmod -R u+rwX tmp/pids/  
211 - sudo chmod -R u+rwX tmp/sockets/ 207 + # Make sure GitLab can write to the tmp/pids/ and tmp/sockets/ directories
  208 + sudo chmod -R u+rwX tmp/pids/
  209 + sudo chmod -R u+rwX tmp/sockets/
212 210
213 - # Create public/uploads directory otherwise backup will fail  
214 - sudo -u git -H mkdir public/uploads 211 + # Make sure GitLab can write to the public/uploads/ directory
215 sudo chmod -R u+rwX public/uploads 212 sudo chmod -R u+rwX public/uploads
216 213
217 # Copy the example Unicorn config 214 # Copy the example Unicorn config
public/uploads/.gitkeep 0 → 100644
tmp/pids/.gitkeep 0 → 100644
tmp/sockets/.gitkeep 0 → 100644