Commit 18716e12 authored by ale's avatar ale

Drop bashisms pushd/popd

parent 4a3e816b
Pipeline #5251 failed with stages
in 57 seconds
...@@ -23,9 +23,8 @@ install_keystore() { ...@@ -23,9 +23,8 @@ install_keystore() {
mkdir -p $tmpdir/src/git.autistici.org/id mkdir -p $tmpdir/src/git.autistici.org/id
ln -s $PWD $tmpdir/src/git.autistici.org/id/keystore ln -s $PWD $tmpdir/src/git.autistici.org/id/keystore
pushd $tmpdir/src/git.autistici.org/id/keystore GOPATH=$tmpdir go build -o /usr/bin/dovecot-keylookupd git.autistici.org/id/keystore/cmd/dovecot-keylookupd
GOPATH=$tmpdir go build -o /usr/bin/dovecot-keylookupd cmd/dovecot-keylookupd GOPATH=$tmpdir go build -o /usr/bin/keystored git.autistici.org/id/keystore/cmd/keystored
GOPATH=$tmpdir go build -o /usr/bin/keystored cmd/keystored
addgroup --system --quiet dovecot-keylookupd addgroup --system --quiet dovecot-keylookupd
adduser --system --no-create-home --home /run/dovecot-keylookupd \ adduser --system --no-create-home --home /run/dovecot-keylookupd \
...@@ -40,11 +39,10 @@ install_keystore() { ...@@ -40,11 +39,10 @@ install_keystore() {
systemctl daemon-reload systemctl daemon-reload
mkdir -p /var/lib/keystore /etc/sso mkdir -p /var/lib/keystore /etc/sso
GOPATH=$tmpdir go run integration-test/init.go --dbpath=/var/lib/keystore/test.db --ssopath=/etc/sso $TESTPW1 $TESTPW2 GOPATH=$tmpdir go run git.autistici.org/id/keystore/integration-test/init.go --dbpath=/var/lib/keystore/test.db --ssopath=/etc/sso $TESTPW1 $TESTPW2
chown -R keystored /var/lib/keystore chown -R keystored /var/lib/keystore
rm -fr $tmpdir rm -fr $tmpdir
popd
} }
configure_dovecot() { configure_dovecot() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment