From: ivan Date: Sat, 5 Jun 2004 03:00:17 +0000 (+0000) Subject: self-service installer? X-Git-Tag: BEFORE_FINAL_MASONIZE~1053 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ef10539fa94bf35ef913bab50030a7f9242c2f9e;ds=sidebyside self-service installer? --- diff --git a/Makefile b/Makefile index ffbd67afc..f469d5fe8 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 + RT_ENABLED = 0 #RT_ENABLED = 1 RT_DOMAIN = example.com @@ -165,6 +169,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 install-rt deploy: install