Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

two new helper scripts

  • Loading branch information...
commit faf70fbca832cf692e9534892d83d4ce344e6274 1 parent ed7107a
Ringo authored
Showing with 19 additions and 0 deletions.
  1. +8 −0 delete_domain.sh
  2. +11 −0 list_domains.sh
View
8 delete_domain.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -z $1 ]; then
+ echo "Usage: delete_domain.sh [node] [ringo_root] [domainid]"
+ exit 1
+fi
+
+ssh $1 "find $2 -iname 'rdomain-$3' -exec rm -Rf \{\} \;"
View
11 list_domains.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ -z $1 ]; then
+ echo "Usage: list_domains.sh [node] [ringo_root]"
+ exit 1
+fi
+
+for f in `ssh $1 find $2 -iname 'rdomain-*'`; do
+ T=`basename $f`
+ echo ${T:8}
+done

0 comments on commit faf70fb

Please sign in to comment.
Something went wrong with that request. Please try again.