diff options
author | François Andriot <albator78@libertysurf.fr> | 2020-01-18 20:25:56 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2020-01-18 20:29:31 +0100 |
commit | a01912d54a1bf24aaa20bfbfb33709134d52d6f6 (patch) | |
tree | d8ce8396f2df160f29730d13803af4717a361cdd /redhat/docker/opensuse32.sh | |
parent | 685d3568bfc83de6ab77e5f817edb1d3514db323 (diff) | |
download | tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.tar.gz tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/docker/opensuse32.sh')
-rwxr-xr-x | redhat/docker/opensuse32.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/redhat/docker/opensuse32.sh b/redhat/docker/opensuse32.sh index a3b888c75..3a3a6c2b2 100755 --- a/redhat/docker/opensuse32.sh +++ b/redhat/docker/opensuse32.sh @@ -1,19 +1,21 @@ #!/bin/bash -NAME="opensuse32" VERSION="$1" # E.g: '42.3' -IMAGE="${NAME}:${VERSION}" -INSTALLROOT="/dev/shm/${IMAGE}" - -sudo rm -rf "${INSTALLROOT}" -sudo mkdir -p "${INSTALLROOT}" if [ "${VERSION}" = "tumbleweed" ]; then URL="http://download.opensuse.org/tumbleweed" + NAME="opensuse32/tumbleweed" else URL="http://download.opensuse.org/distribution/leap/${VERSION}" + NAME="opensuse32/leap" fi +IMAGE="${NAME}:${VERSION}" +INSTALLROOT="/dev/shm/${IMAGE}" + +sudo rm -rf "${INSTALLROOT}" +sudo mkdir -p "${INSTALLROOT}" + sudo zypper --root "${INSTALLROOT}" \ ar "${URL}/repo/oss/" "oss" sudo zypper --root "${INSTALLROOT}" \ |