Fix S390x softhsm image build
@@ -9,13 +9,15 @@ set -xe
ARCH=`uname -m`
if [ $ARCH = "s390x" ]; then
+ # TODO: Use a base image that doesn't have apt issues.
+ sed -i '/security.debian.org/d' /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian sid main" >> /etc/apt/sources.list
fi
-apt-get update && \
-apt-get install -y --no-install-recommends softhsm2 curl git gcc g++ libtool libltdl-dev && \
-mkdir -p /var/lib/softhsm/tokens/ && \
-softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin 1234 --pin 98765432 && \
+apt-get update
+apt-get install -y --no-install-recommends softhsm2 curl git gcc g++ libtool libltdl-dev
+mkdir -p /var/lib/softhsm/tokens/
+softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin 1234 --pin 98765432
go get -u github.com/golang/dep/cmd/dep
cd /opt/gopath/src/pkcs11helper/
dep ensure -vendor-only
