summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorivan <ivan>2004-06-05 11:34:25 +0000
committerivan <ivan>2004-06-05 11:34:25 +0000
commitab151ccd8108e6a4bc24076e6a1cd3899a817e6b (patch)
treef74cc063f20e89f0e6ac118e7c50293a3a46b7dd /Makefile
parente7b84aa262d4390d8abdb943c2ae084fa44e5538 (diff)
automated self-service lib install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files 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