summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/usage
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-24 14:57:15 +0800
committerGitHub <noreply@github.com>2022-05-24 14:57:15 +0800
commit4266bd924bb8fff20271c17f8989b39b04ef6673 (patch)
tree48f7d2381227e4308bc800fc18bd2c334313682a /docs/content/doc/usage
parent7671a3322b410f7727e925060c1976373bf95bb0 (diff)
downloadgitea-4266bd924bb8fff20271c17f8989b39b04ef6673.tar.gz
gitea-4266bd924bb8fff20271c17f8989b39b04ef6673.zip
Update document to use FHS `/usr/local/bin/gitea` instead of `/app/...` for Docker (#19794)
* Update document to use FHS `/usr/local/bin/gitea` instead of `/app/...` in Docker * Update docs/content/doc/installation/with-docker.zh-cn.md
Diffstat (limited to 'docs/content/doc/usage')
-rw-r--r--docs/content/doc/usage/backup-and-restore.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/usage/backup-and-restore.en-us.md b/docs/content/doc/usage/backup-and-restore.en-us.md
index 7cb4a6230f..a8ad52ae0c 100644
--- a/docs/content/doc/usage/backup-and-restore.en-us.md
+++ b/docs/content/doc/usage/backup-and-restore.en-us.md
@@ -57,7 +57,7 @@ The command has to be executed with the `RUN_USER = <OS_USERNAME>` specified in
Example:
```none
-docker exec -u <OS_USERNAME> -it -w <--tempdir> $(docker ps -qf 'name=^<NAME_OF_DOCKER_CONTAINER>$') bash -c '/app/gitea/gitea dump -c </path/to/app.ini>'
+docker exec -u <OS_USERNAME> -it -w <--tempdir> $(docker ps -qf 'name=^<NAME_OF_DOCKER_CONTAINER>$') bash -c '/user/local/bin/gitea dump -c </path/to/app.ini>'
```
\*Note: `--tempdir` refers to the temporary directory of the docker environment used by Gitea; if you have not specified a custom `--tempdir`, then Gitea uses `/tmp` or the `TMPDIR` environment variable of the docker container. For `--tempdir` adjust your `docker exec` command options accordingly.