Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

two new helper scripts

  • Loading branch information...
commit faf70fbca832cf692e9534892d83d4ce344e6274 1 parent ed7107a
Ringo authored

Showing 2 changed files with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 delete_domain.sh
  2. +11 0 list_domains.sh
8 delete_domain.sh
... ... @@ -0,0 +1,8 @@
  1 +#!/bin/bash
  2 +
  3 +if [ -z $1 ]; then
  4 + echo "Usage: delete_domain.sh [node] [ringo_root] [domainid]"
  5 + exit 1
  6 +fi
  7 +
  8 +ssh $1 "find $2 -iname 'rdomain-$3' -exec rm -Rf \{\} \;"
11 list_domains.sh
... ... @@ -0,0 +1,11 @@
  1 +#!/bin/bash
  2 +
  3 +if [ -z $1 ]; then
  4 + echo "Usage: list_domains.sh [node] [ringo_root]"
  5 + exit 1
  6 +fi
  7 +
  8 +for f in `ssh $1 find $2 -iname 'rdomain-*'`; do
  9 + T=`basename $f`
  10 + echo ${T:8}
  11 +done

0 comments on commit faf70fb

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