summaryrefslogtreecommitdiff
path: root/taler-build/switch_restart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taler-build/switch_restart.sh')
-rwxr-xr-xtaler-build/switch_restart.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/taler-build/switch_restart.sh b/taler-build/switch_restart.sh
new file mode 100755
index 0000000..425300b
--- /dev/null
+++ b/taler-build/switch_restart.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+active=$(sudo -u test cat /home/test/active)
+nonactive="test-blue"
+echo "Active party: ${active}"
+
+sudo -u $nonactive bash -c 'cd $HOME; . activate; taler-deployment-restart'