From ab151ccd8108e6a4bc24076e6a1cd3899a817e6b Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 5 Jun 2004 11:34:25 +0000 Subject: [PATCH] automated self-service lib install --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f469d5fe8..b1ad0118a 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" RT_ENABLED = 0 #RT_ENABLED = 1 @@ -170,10 +172,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 install-rt -- 2.11.0