summaryrefslogtreecommitdiffstats
path: root/redhat/docker/opensuse32.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2020-01-18 20:25:56 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2020-01-18 20:29:31 +0100
commita01912d54a1bf24aaa20bfbfb33709134d52d6f6 (patch)
treed8ce8396f2df160f29730d13803af4717a361cdd /redhat/docker/opensuse32.sh
parent685d3568bfc83de6ab77e5f817edb1d3514db323 (diff)
downloadtde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.tar.gz
tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.zip
RPM: update build scripts
Diffstat (limited to 'redhat/docker/opensuse32.sh')
-rwxr-xr-xredhat/docker/opensuse32.sh14
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}" \