From: ivan Date: Sat, 5 Jun 2004 11:34:25 +0000 (+0000) Subject: automated self-service lib install X-Git-Tag: BEFORE_FINAL_MASONIZE~1051 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ab151ccd8108e6a4bc24076e6a1cd3899a817e6b automated self-service lib install --- 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