mirror of https://github.com/hak5/overseer.git
Merge pull request #17 from fmpwizard/patch-1
If fetcher is disabled, don't test to move filesmaster
commit
aefa2b61eb
|
@ -90,12 +90,14 @@ func (mp *master) checkBinary() error {
|
|||
mp.binHash = hash.Sum(nil)
|
||||
f.Close()
|
||||
//test bin<->tmpbin moves
|
||||
if mp.Config.Fetcher != nil {
|
||||
if err := move(tmpBinPath, mp.binPath); err != nil {
|
||||
return fmt.Errorf("cannot move binary (%s)", err)
|
||||
}
|
||||
if err := move(mp.binPath, tmpBinPath); err != nil {
|
||||
return fmt.Errorf("cannot move binary back (%s)", err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue