File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ import "path/filepath"
9
9
// inclde sites-enabled/*.conf
10
10
11
11
func resolvePath (path ... string ) string {
12
- return filepath .Join (path ... ) + ".conf"
12
+ return filepath .ToSlash ( filepath . Join (path ... ) + ".conf" )
13
13
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
18
18
// Disable disables a site by removing the symlink in sites-enabled
19
19
func Disable (name string ) (err error ) {
20
- enabledConfigFilePath := nginx .GetConfPath ("sites-enabled" , name )
20
+ enabledConfigFilePath := nginx .GetConfSymlinkPath ( nginx . GetConfPath ("sites-enabled" , name ) )
21
21
_ , err = os .Stat (enabledConfigFilePath )
22
22
if err != nil {
23
23
return
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
18
18
// Disable disables a site by removing the symlink in sites-enabled
19
19
func Disable (name string ) (err error ) {
20
- enabledConfigFilePath := nginx .GetConfPath ("streams-enabled" , name )
20
+ enabledConfigFilePath := nginx .GetConfSymlinkPath ( nginx . GetConfPath ("streams-enabled" , name ) )
21
21
_ , err = os .Stat (enabledConfigFilePath )
22
22
if err != nil {
23
23
return
You can’t perform that action at this time.
0 commit comments