diff options
author | Wars <WarsFeng@gmail.com> | 2019-11-14 15:57:29 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-14 07:57:29 +0000 |
commit | c9b564ccdb7cd22a0a88a29a5d2b440fcbbadeb0 (patch) | |
tree | 7862a0d09189851c19bc1915fae0c57a07d70b9d | |
parent | 04e6d761bc89bcc51dd6f1b4e2fc7c3c1ac8eefa (diff) | |
download | gitea-c9b564ccdb7cd22a0a88a29a5d2b440fcbbadeb0.tar.gz gitea-c9b564ccdb7cd22a0a88a29a5d2b440fcbbadeb0.zip |
fix(docs): Fixed creating Windows service commands (#8979)
escaping " to \"
4 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/doc/installation/windows-service.en-us.md b/docs/content/doc/installation/windows-service.en-us.md index 6a4b33cb3f..8e3b63a1c8 100644 --- a/docs/content/doc/installation/windows-service.en-us.md +++ b/docs/content/doc/installation/windows-service.en-us.md @@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini then run the following command: ``` -sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini"" +sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" ``` Do not forget to replace `C:\gitea` with the correct Gitea directory. diff --git a/docs/content/doc/installation/windows-service.fr-fr.md b/docs/content/doc/installation/windows-service.fr-fr.md index 66cc5fc6dd..0a45bad20c 100644 --- a/docs/content/doc/installation/windows-service.fr-fr.md +++ b/docs/content/doc/installation/windows-service.fr-fr.md @@ -18,7 +18,7 @@ menu: Pour activer le service Windows Gitea, ouvrez une `cmd` en tant qu'Administrateur puis utilisez la commande suivante : ``` -sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini"" +sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" ``` N'oubliez pas de remplacer `C:\gitea` par le chemin que vous avez utilisez pour votre installation. diff --git a/docs/content/doc/installation/windows-service.zh-cn.md b/docs/content/doc/installation/windows-service.zh-cn.md index 6f03f38b8e..063c644de5 100644 --- a/docs/content/doc/installation/windows-service.zh-cn.md +++ b/docs/content/doc/installation/windows-service.zh-cn.md @@ -18,7 +18,7 @@ menu: 要注册为Windows服务,首先以Administrator身份运行 `cmd`,然后执行以下命令: ``` -sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini"" +sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" ``` 别忘了将 `C:\gitea` 替换成你的 Gitea 安装目录。 diff --git a/docs/content/doc/installation/windows-service.zh-tw.md b/docs/content/doc/installation/windows-service.zh-tw.md index 23dba7f8c9..2ee886ff2e 100644 --- a/docs/content/doc/installation/windows-service.zh-tw.md +++ b/docs/content/doc/installation/windows-service.zh-tw.md @@ -18,7 +18,7 @@ menu: 要註冊為 Windows 服務,首先要以管理者身份執行 `cmd`,跳出命令列視窗後執行底下指令: ``` -sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini"" +sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" ``` 別忘記將 `C:\gitea` 取代為您的 Gitea 安裝路徑。 |