mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 09:00:27 +00:00
fix windows service: was broken in the latest commit
This commit is contained in:
parent
ce9387f1ab
commit
bbab6149e8
1 changed files with 2 additions and 2 deletions
|
@ -123,12 +123,12 @@ func (s *WindowsService) RunService() error {
|
|||
return err
|
||||
}
|
||||
|
||||
isIntSess, err := svc.IsWindowsService()
|
||||
inService, err := svc.IsWindowsService()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
s.isInteractive = isIntSess
|
||||
s.isInteractive = !inService
|
||||
dir := filepath.Dir(exePath)
|
||||
if err = os.Chdir(dir); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue