[sysadmin-bin] signal-ftp-sync: put private key in different location
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] signal-ftp-sync: put private key in different location
- Date: Tue, 8 Mar 2011 18:47:57 +0000 (UTC)
commit 375c8921553979fbbef78b8663f5a736e1aa438c
Author: Olav Vitters <olav vitters nl>
Date: Tue Mar 8 19:47:52 2011 +0100
signal-ftp-sync: put private key in different location
signal-ftp-sync | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/signal-ftp-sync b/signal-ftp-sync
index 5f3a06d..5363e65 100755
--- a/signal-ftp-sync
+++ b/signal-ftp-sync
@@ -3,12 +3,12 @@
# mirror the archive.
if [ "`whoami`" != gnomeftp ] ; then
- cd / && exec sudo -n -u gnomeftp -i /home/admin/secret/gnomeftp/id_rsa /usr/local/bin/signal-ftp-sync "$@"
+ cd / && exec sudo -n -u gnomeftp /usr/local/bin/signal-ftp-sync "$@"
fi
signal () {
echo Signalling $1
- ssh -o"BatchMode yes" -o"ForwardAgent no" -o"ForwardX11 no" -o"user $2" -f "$1" sleep 1
+ ssh -i /home/admin/secret/gnomeftp/id_rsa -o"BatchMode yes" -o"ForwardAgent no" -o"ForwardX11 no" -o"user $2" -f "$1" sleep 1
}
signal churchill.acc.umu.se ftp-gnom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]