diff toolfactory/rgToolFactory2.py @ 107:18e616939a91 draft

Uploaded
author fubar
date Sat, 28 Nov 2020 02:52:24 +0000
parents 6de08f44e551
children e878bfc6b80c
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Sat Nov 28 00:50:29 2020 +0000
+++ b/toolfactory/rgToolFactory2.py	Sat Nov 28 02:52:24 2020 +0000
@@ -725,8 +725,6 @@
             slogl = str(rlog).split("\\n")
             slog = "\n".join(slogl)
             tout.write(f"## got rlog {slog} from {cl}\n")
-
-        dgroup = grp.getgrnam("docker")[2]
         if os.path.exists(self.tlog):
             tout = open(self.tlog, "a")
         else:
@@ -749,15 +747,13 @@
             user="biodocker",
             volumes={f"{tvolname}": {"bind": "/toolfactory", "mode": "rw"}},
         )
-        cl = f"groupmod -g {dgroup} docker"
-        prun(container, tout, cl, user="root")
         cl = f"mkdir -p {destdir}"
         prun(container, tout, cl, user="root")
         cl = f"rm -rf {destdir}/*"
         prun(container, tout, cl, user="root")
         ptestpath = os.path.join(destdir, "tfout", xreal)
         self.copy_to_container(self.tooloutdir, destdir, container)
-        cl = "chmod -R a+rwx /toolfactory"
+        cl = "chown -R biodocker /toolfactory"
         prun(container, tout, cl, user="root")
         rlog = container.exec_run(f"ls -la {destdir}")
         ptestcl = f"planemo test  --update_test_data  --no_cleanup --test_data {destdir}/tfout/test-data --galaxy_root /home/biodocker/galaxy-central {ptestpath}"