gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] 02/02: More automation for demo/test dep


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] 02/02: More automation for demo/test deployment.
Date: Mon, 25 Mar 2019 14:45:07 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository deployment.

commit 8917409c4fbd5ec311e52b349872233e23b70ab6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 25 14:43:29 2019 +0100

    More automation for demo/test deployment.
---
 bootstrap-bluegreen |  7 ++++---
 demo.sh             | 14 ++++++++++++++
 test.sh             | 14 ++++++++++++++
 3 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/bootstrap-bluegreen b/bootstrap-bluegreen
index 6026aa5..a11c45f 100755
--- a/bootstrap-bluegreen
+++ b/bootstrap-bluegreen
@@ -12,9 +12,9 @@
 # demo-blue$ ~/deployment/bootstrap-bluegreen demo
 # demo-green$ ~/deployment/bootstrap-bluegreen demo
 
-# There MUST be a user with the same name
-# as the deployment basename to share data
-# between the blue/green deployment.
+# NOTE: ENVNAME is also the name of the user who keeps
+# shared data in its home directory, so it must exist!
+# For demo/test ENVNAMEs, see {demo,test}.sh
 
 set -eu
 
@@ -104,3 +104,4 @@ export 
TALER_ENV_URL_BACKOFFICE="https://backoffice.$ENVNAME.taler.net/";
 EOL
 
 ln -sf "/home/$ENVNAME/shared-data" "$HOME"
+mkdir -p "$HOME/sockets"
diff --git a/demo.sh b/demo.sh
new file mode 100755
index 0000000..3ce92e3
--- /dev/null
+++ b/demo.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Every "blue/green" setup relies on a common user that keeps
+# all the shared data (keys, for example).  In our setup, test-*
+# and demo-* rely on the users 'test' and 'demo'.  This script
+# automates the configuration of the 'demo' user.
+
+if ! test "demo" = $(whoami); then
+  echo This script can only be run by the 'demo' user, exiting..
+  exit 1
+fi
+
+echo Creating the 'shared-data' directory.
+mkdir $HOME/shared-data
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..9f10f6f
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Every "blue/green" setup relies on a common user that keeps
+# all the shared data (keys, for example).  In our setup, test-*
+# and demo-* rely on the users 'test' and 'demo'.  This script
+# automates the configuration of the 'demo' user.
+
+if ! test "test" = $(whoami); then
+  echo This script can only be run by the 'demo' user, exiting..
+  exit 1
+fi
+
+echo Creating the 'shared-data' directory.
+mkdir $HOME/shared-data

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]