[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 111/141: move expect to top for pipeline to fail if not s
From: |
gnunet |
Subject: |
[taler-grid5k] 111/141: move expect to top for pipeline to fail if not successful |
Date: |
Thu, 18 Nov 2021 14:50:52 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit c913916fd86bc596709514ca7b89b0912716baa8
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sun Nov 7 08:51:36 2021 +0100
move expect to top for pipeline to fail if not successful
---
docker/entrypoint.sh | 43 ++++++++++++++++++++++++++-----------------
1 file changed, 26 insertions(+), 17 deletions(-)
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 79a4be2..a4386a6 100644
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -57,6 +57,32 @@ function install() {
fi
}
+if [ "$COPY" != false ];
+then
+ eval $(ssh-agent)
+
+ if [[ -f "/root/cert.pem" ]]; then
+
+ if [[ "${GRID5K_CERT_PASSWD}" != "" ]]; then
+ /usr/bin/expect -c "
+ spawn ssh-add /root/cert.pem;
+ expect {
+ \"Enter passphrase for /root/cert.pem: \" {
+ exp_send ${GRID5K_CERT_PASSWD}\n;
+ exp_continue
+ }
+ \"Identity added: /root/cert.pem (/root/cert.pem)\" {
+ exp_continue
+ }
+ eof {}
+ }"
+ else
+ ssh-add /root/cert.pem
+ fi
+
+ fi
+fi
+
install gnunet \
"${GNUNET_COMMIT_SHA}"
@@ -91,23 +117,6 @@ cd build/taler-debian11
if [ -f "/root/cert.pem" ] && [ "$COPY" != false ]; then
- eval $(ssh-agent)
-
- if [[ -f "/root/cert.pem" ]]; then
-
- if [[ "${GRID5K_CERT_PASSWD}" != "" ]]; then
- /usr/bin/expect -c "
- spawn ssh-add /root/cert.pem;
- expect \"Enter passphrase for /root/cert.pem: \";
- send ${GRID5K_CERT_PASSWD}\n;
- expect \"Identity added: /root/cert.pem (/root/cert.pem)\";
- interact"
- else
- ssh-add /root/cert.pem
- fi
-
- fi
-
mv taler-debian11.dsc taler-debian11.dsc.bak
IFS=, read -ra G5K_HOSTS <<< "${GRID5K_DEST}"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 114/141: update configs, (continued)
- [taler-grid5k] 114/141: update configs, gnunet, 2021/11/18
- [taler-grid5k] 115/141: split rspec, change tags, gnunet, 2021/11/18
- [taler-grid5k] 77/141: update image build, gnunet, 2021/11/18
- [taler-grid5k] 128/141: add sanitizer and disable optimizer, gnunet, 2021/11/18
- [taler-grid5k] 100/141: update docker README, gnunet, 2021/11/18
- [taler-grid5k] 130/141: update image, gnunet, 2021/11/18
- [taler-grid5k] 134/141: resolved does not work, switch back, gnunet, 2021/11/18
- [taler-grid5k] 123/141: update per stream limit in loki, gnunet, 2021/11/18
- [taler-grid5k] 113/141: tune postgres config, gnunet, 2021/11/18
- [taler-grid5k] 101/141: update merchant config, gnunet, 2021/11/18
- [taler-grid5k] 111/141: move expect to top for pipeline to fail if not successful,
gnunet <=
- [taler-grid5k] 125/141: change permissions, gnunet, 2021/11/18
- [taler-grid5k] 74/141: install nodejs permanently, gnunet, 2021/11/18
- [taler-grid5k] 76/141: modify nginx settings, gnunet, 2021/11/18
- [taler-grid5k] 141/141: Node setup complete - multiple projects because of allocation bug in jFed, gnunet, 2021/11/18
- [taler-grid5k] 122/141: remove directories of taler after install, gnunet, 2021/11/18
- [taler-grid5k] 121/141: cut log size of proxy, gnunet, 2021/11/18
- [taler-grid5k] 109/141: update loki version, gnunet, 2021/11/18
- [taler-grid5k] 91/141: change ts in proxy logs, gnunet, 2021/11/18
- [taler-grid5k] 84/141: set envfile in netdelay service, gnunet, 2021/11/18
- [taler-grid5k] 92/141: update loki config, gnunet, 2021/11/18