diff options
author | François Andriot <albator78@libertysurf.fr> | 2017-11-05 20:36:04 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2017-11-05 20:36:04 +0100 |
commit | f604d2d72f45d13aeb1706c855624e40a43a602b (patch) | |
tree | ac955ccbf464cfded46a1498fb29808127e31a13 /redhat/docker | |
parent | 488d11495027a75355bebe4ad16497b336dbf404 (diff) | |
download | tde-packaging-f604d2d72f45d13aeb1706c855624e40a43a602b.tar.gz tde-packaging-f604d2d72f45d13aeb1706c855624e40a43a602b.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/docker')
-rwxr-xr-x | redhat/docker/pclinuxos/genla.sh | 3 | ||||
-rwxr-xr-x | redhat/docker/run.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/redhat/docker/pclinuxos/genla.sh b/redhat/docker/pclinuxos/genla.sh index b909b0601..ecc7ac98f 100755 --- a/redhat/docker/pclinuxos/genla.sh +++ b/redhat/docker/pclinuxos/genla.sh @@ -60,4 +60,5 @@ dlpreopen='' libdir='${LIBDIR}' EOF -sudo mv "/tmp/$LIB.$$" "${FILE}" +[ $(whoami) = "root" ] || SUDO="sudo" +$SUDO mv "/tmp/$LIB.$$" "${FILE}" diff --git a/redhat/docker/run.sh b/redhat/docker/run.sh index b1f2621ef..b8138d8c3 100755 --- a/redhat/docker/run.sh +++ b/redhat/docker/run.sh @@ -14,7 +14,7 @@ mkdir -p "${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}" mkdir -p "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}" mkdir -p "/dev/shm/docker" -docker run -t -i \ +docker run -t -i --rm \ -h "${IMAGE}" \ -v /dev/shm/docker:/tmp:z \ -u trinity \ |