summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-06-05 11:34:26 +0000
committerivan <ivan>2004-06-05 11:34:26 +0000
commit78d47fb5d3a52de488d0b211293f253418ba494b (patch)
tree2cb0ebd3e2993b50f4bec4cc31a084548c2e73c2
parent89f39d9b08a66f8337a2398c87530776b46f53d5 (diff)
automated self-service lib install
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0024ee7e7..ac9906623 100644
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,8 @@ SELFSERVICE_USER = fs_selfservice
#user with sudo access on SELFSERVICE_MACHINES for automated self-service
#installation.
SELFSERVICE_INSTALL_USER = ivan
+SELFSERVICE_INSTALL_USERADD = useradd
+#SELFSERVICE_INSTALL_USERADD = "pw useradd"
#---
@@ -156,10 +158,13 @@ install-init:
" ${INIT_FILE}
install-selfservice:
+ [ -e ~freeside/.ssh/id_dsa.pub ] || su -c 'ssh-keygen -t dsa' - freeside
for MACHINE in ${SELFSERVICE_MACHINES}; do \
- scp -r fs_selfservice/FS-SelfService ${SELFSERVICE_INSTALL_USER}@\$MACHINE:.
- ssh ${SELFSERVICE_INSTALL_USER}@\$MACHINE "cd FS-SelfService; perl Makefile.PL && make"
- ssh ${SELFSERVICE_INSTALL_USER}@\$MACHINE "cd FS-SelfService; sudo make install"
+ scp -r fs_selfservice/FS-SelfService ${SELFSERVICE_INSTALL_USER}@$$MACHINE:.
+ ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; perl Makefile.PL && make"
+ ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; sudo make install"
+ scp ~freeside/.ssh/id_dsa.pub ${SELFSERVICE_INSTALL_USER}@$$MACHINE:.
+ ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "sudo $SELFSERVICE_INSTALL_USERADD freeside; sudo install -D -o freeside -m 600 ./id_dsa.pub ~freeside/.ssh/authorized_keys"
install: install-perl-modules install-docs install-init