summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-13 13:41:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-13 13:41:28 (GMT)
commita6894836ae5f83dd9074b1f872a270fee8fdbde8 (patch)
tree659e26c5347ebb1d0e48521527fb4688d06f030d
parent017434491c5a8049564a2cc408944ba404d2c52b (diff)
added rhimport create id tool
git-svn-id: https://svn.helsinki.at/rhimport/trunk@48 7c65635b-ec39-4f67-a626-873dbafdd612
-rw-r--r--Makefile1
-rwxr-xr-xdebian/rules1
-rwxr-xr-xrhimport-create-id9
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f99b40..664ff91 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ install: $(INSTALL_TARGETS)
install-bin:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 rhimport-create-id $(DESTDIR)$(BINDIR)
@sed s#/usr/local/share/rhimport/#$(SHAREDIR)/$(EXECUTABLE)/#g -i $(DESTDIR)$(BINDIR)/$(EXECUTABLE)
install-share:
diff --git a/debian/rules b/debian/rules
index 5c74e81..37aa438 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,7 @@ clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
+ $(MAKE) distclean
dh_clean
install: build
diff --git a/rhimport-create-id b/rhimport-create-id
new file mode 100755
index 0000000..3929983
--- /dev/null
+++ b/rhimport-create-id
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+KEYDIR="$HOME/.rhimport"
+KEYFILE=$KEYDIR/import.key
+
+mkdir -p $KEYDIR
+ssh-keygen -f $KEYFILE -t dsa
+chmod 600 $KEYFILE
+cat $KEYFILE.pub | ssh rhadmin@airplay "sudo /usr/local/bin/rhimport-add-id" \ No newline at end of file