From: Eric Leblond Date: Thu, 22 Oct 2015 19:06:44 +0000 (+0200) Subject: prscript: docker do not need sudo X-Git-Tag: suricata-3.0RC1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c1b681eea62918e07c35e3d8c8df23f1f26d49;p=thirdparty%2Fsuricata.git prscript: docker do not need sudo Usage is not to run docker command as root but to have the user in the docker group to be able to run docker commands. --- diff --git a/qa/prscript.py b/qa/prscript.py index 4f401edde4..f67d94cc44 100755 --- a/qa/prscript.py +++ b/qa/prscript.py @@ -227,9 +227,6 @@ if not args.local and TestRepoSync(args.branch) == -1: sys.exit(-1) def CreateContainer(): - if not os.geteuid() == 0: - print "Command must be run as root" - sys.exit(-1) cli = Client() # FIXME check if existing print "Pulling docking image, first run should take long" @@ -238,9 +235,6 @@ def CreateContainer(): sys.exit(0) def StartContainer(): - if not os.geteuid() == 0: - print "Command must be run as root" - sys.exit(-1) cli = Client() suri_src_dir = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0] print "Using base src dir: " + suri_src_dir @@ -248,9 +242,6 @@ def StartContainer(): sys.exit(0) def StopContainer(): - if not os.geteuid() == 0: - print "Command must be run as root" - sys.exit(-1) cli = Client() cli.stop('suri-buildbot') sys.exit(0)