Skip to content

Commit c9b564c

Browse files
WarsFengzeripath
authored andcommitted
fix(docs): Fixed creating Windows service commands (#8979)
escaping " to \"
1 parent 04e6d76 commit c9b564c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/content/doc/installation/windows-service.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini
4040
then run the following command:
4141

4242
```
43-
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
43+
sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
4444
```
4545

4646
Do not forget to replace `C:\gitea` with the correct Gitea directory.

docs/content/doc/installation/windows-service.fr-fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ menu:
1818
Pour activer le service Windows Gitea, ouvrez une `cmd` en tant qu'Administrateur puis utilisez la commande suivante :
1919

2020
```
21-
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
21+
sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
2222
```
2323

2424
N'oubliez pas de remplacer `C:\gitea` par le chemin que vous avez utilisez pour votre installation.

docs/content/doc/installation/windows-service.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ menu:
1818
要注册为Windows服务,首先以Administrator身份运行 `cmd`,然后执行以下命令:
1919

2020
```
21-
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
21+
sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
2222
```
2323

2424
别忘了将 `C:\gitea` 替换成你的 Gitea 安装目录。

docs/content/doc/installation/windows-service.zh-tw.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ menu:
1818
要註冊為 Windows 服務,首先要以管理者身份執行 `cmd`,跳出命令列視窗後執行底下指令:
1919

2020
```
21-
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
21+
sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
2222
```
2323

2424
別忘記將 `C:\gitea` 取代為您的 Gitea 安裝路徑。

0 commit comments

Comments
 (0)