Skip to content

Commit 37a318c

Browse files
committed
add backup, and removal of backup is successful
1 parent a247266 commit 37a318c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

misc/homedir-move/README.md renamed to misc/homedir/movedir.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ usermod -d /var/lib/git -g 500 -u 500 git
3434
### 2. Move the git folder
3535

3636
```bash
37-
mv /home/git /var/lib/
37+
cp -r /home/git /var/lib/
3838
```
3939

4040
### 3. Change permissions to use the new uid/gid
@@ -235,3 +235,9 @@ To make sure you didn't miss anything run a more thorough check with:
235235

236236
cd ~git/gitlab
237237
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
238+
239+
### 12. Remove old home
240+
241+
Once you are happy that everything is now working in the new directory, you can remove the old `/home/git`
242+
243+
rm -rf /home/git

0 commit comments

Comments
 (0)