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"
99// inclde sites-enabled/*.conf
1010
1111func resolvePath (path ... string ) string {
12- return filepath .Join (path ... ) + ".conf"
12+ return filepath .ToSlash ( filepath . Join (path ... ) + ".conf" )
1313}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
1717
1818// Disable disables a site by removing the symlink in sites-enabled
1919func Disable (name string ) (err error ) {
20- enabledConfigFilePath := nginx .GetConfPath ("sites-enabled" , name )
20+ enabledConfigFilePath := nginx .GetConfSymlinkPath ( nginx . GetConfPath ("sites-enabled" , name ) )
2121 _ , err = os .Stat (enabledConfigFilePath )
2222 if err != nil {
2323 return
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
1717
1818// Disable disables a site by removing the symlink in sites-enabled
1919func Disable (name string ) (err error ) {
20- enabledConfigFilePath := nginx .GetConfPath ("streams-enabled" , name )
20+ enabledConfigFilePath := nginx .GetConfSymlinkPath ( nginx . GetConfPath ("streams-enabled" , name ) )
2121 _ , err = os .Stat (enabledConfigFilePath )
2222 if err != nil {
2323 return
You can’t perform that action at this time.
0 commit comments