Skip to content

Commit

Permalink
feat: improve stopProcess()
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jan 7, 2025
1 parent 8b6f4f7 commit c49fee4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ func CreateRepo(siteName string, needStart bool, diff string, providerName strin

if affected {
if !needStart {
err = stopProcess(siteName)
if err != nil {
return wrapRepoError("stopProcess", err)
if !strings.HasPrefix(siteName, "casdoor") {
err = stopProcess(siteName)
if err != nil {
return wrapRepoError("stopProcess", err)
}
}

err = startProcess(siteName)
Expand Down

0 comments on commit c49fee4

Please sign in to comment.