From: ivan Date: Sat, 5 Jun 2004 03:00:19 +0000 (+0000) Subject: self-service installer? X-Git-Tag: freeside_1_4_2beta1~77 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=89f39d9b08a66f8337a2398c87530776b46f53d5;p=freeside.git self-service installer? --- diff --git a/Makefile b/Makefile index 55ff9d280..0024ee7e7 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,13 @@ QUEUED_USER=fs_queue FREESIDE_PATH = `pwd` SELFSERVICE_USER = fs_selfservice -SELFSERVICE_MACHINES = localhost +# SELFSERVICE_MACHINES = www.example.com # SELFSERVICE_MACHINES = web1.example.com web2.example.com +#user with sudo access on SELFSERVICE_MACHINES for automated self-service +#installation. +SELFSERVICE_INSTALL_USER = ivan + #--- #not changable yet @@ -151,6 +155,12 @@ install-init: s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\ " ${INIT_FILE} +install-selfservice: + 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" + install: install-perl-modules install-docs install-init deploy: install