diff --git a/doc/update/7.14-to-8.0.md b/doc/update/7.14-to-8.0.md
index 1249e0f6bdd0307605734fb2149e0a797142b23d..ed5c6c99e78f66a4e108e82d56e9c57054c644a8 100644
--- a/doc/update/7.14-to-8.0.md
+++ b/doc/update/7.14-to-8.0.md
@@ -99,6 +99,7 @@ Don't store it in the same place as your database backups,
 otherwise your secrets are exposed if one of your backups is compromised.
 
 ```
+cd /home/git/gitlab
 sudo -u git -H cp config/secrets.yml.example config/secrets.yml
 sudo -u git -H chmod 0600 config/secrets.yml
 ```