Skip to content
Permalink
Browse files

Allow Offline scanning on Alpine (#877)

  • Loading branch information...
wagdez authored and kotakanbe committed Jul 30, 2019
1 parent 3d4a5d9 commit 4326befdec2ef27ad6a11bd38872209b0ee87e3b
Showing with 3 additions and 3 deletions.
  1. +3 −3 scan/alpine.go
@@ -65,9 +65,6 @@ func detectAlpine(c config.ServerInfo) (itsMe bool, os osTypeInterface) {
}

func (o *alpine) checkScanMode() error {
if o.getServerInfo().Mode.IsOffline() {
return xerrors.New("Remove offline scan mode, Alpine needs internet connection")
}
return nil
}

@@ -82,6 +79,9 @@ func (o *alpine) checkIfSudoNoPasswd() error {
}

func (o *alpine) apkUpdate() error {
if o.getServerInfo().Mode.IsOffline() {
return nil
}
r := o.exec("apk update", noSudo)
if !r.isSuccess() {
return xerrors.Errorf("Failed to SSH: %s", r)

0 comments on commit 4326bef

Please sign in to comment.
You can’t perform that action at this time.