You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/04/28 11:11:09 UTC

svn commit: r165121 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh

Author: michi
Date: Thu Apr 28 02:11:08 2005
New Revision: 165121

URL: http://svn.apache.org/viewcvs?rev=165121&view=rev
Log:
delete resource by ssh called from shell script because sshexec does not work in any case

Added:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh   (with props)

Added: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh?rev=165121&view=auto
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh (added)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh Thu Apr 28 02:11:08 2005
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+REMOTE_USER=$1
+REMOTE_HOST=$2
+REMOTE_RESOURCE=$3
+
+echo "[$0]: Remote resource: $REMOTE_RESOURCE"
+
+#ssh $REMOTE_USER@$REMOTE_HOST "ls $REMOTE_RESOURCE;exit"
+
+ssh $REMOTE_USER@$REMOTE_HOST "\rm -rf $REMOTE_RESOURCE;exit"
+
+echo "[$0]: Remote resource has been removed"

Propchange: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/bin/replication/delete-remote-resource.sh
------------------------------------------------------------------------------
    svn:executable = *



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org