Skip to content

Commit

Permalink
Supports both CMD and PowerShell (#9344)
Browse files Browse the repository at this point in the history
sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension.
  • Loading branch information
iOnline247 authored and techknowlogick committed Dec 13, 2019
1 parent 6442e00 commit 39db99a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/doc/installation/windows-service.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.exe 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.
Expand All @@ -54,5 +54,5 @@ that was configured).
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:

```
sc delete gitea
sc.exe delete gitea
```

0 comments on commit 39db99a

Please sign in to comment.