summaryrefslogtreecommitdiff
path: root/git.liw.fi.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-10-06 10:20:39 +0100
committerLars Wirzenius <liw@liw.fi>2013-10-06 10:20:39 +0100
commit611ca829bf707d80723764633aa497c6aa360483 (patch)
treec79d95ddab737fff3a7f72e4c50c41ddd101271d /git.liw.fi.sh
parent6b695644b0c514e736af88bf70b1a0838dd6c46e (diff)
downloadliw-gitano-acl-test-suite-611ca829bf707d80723764633aa497c6aa360483.tar.gz
Explicitly test that admin can test user removal
Diffstat (limited to 'git.liw.fi.sh')
-rw-r--r--git.liw.fi.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/git.liw.fi.sh b/git.liw.fi.sh
index f4245f1..b064ad5 100644
--- a/git.liw.fi.sh
+++ b/git.liw.fi.sh
@@ -34,3 +34,15 @@ user_exists()
{
ssh "$GITANO@$GITHOST" user | grep "^$1:"
}
+
+
+# Remove a user from the server. This is a two-step process.
+
+user_del()
+{
+ if run_gitano_as "$1" user del "$2" 2> "$DATADIR/temp"
+ then
+ secret=$(awk '{ s = $2 } END { print s }' "$DATADIR/temp")
+ run_gitano_as "$1" user del "$2" "$secret"
+ fi
+}