lilalo
changeset 96:93281d002ee4
install-lm и install-pm объединён в install-lm
author | devi |
---|---|
date | Sat Apr 22 20:32:48 2006 +0300 (2006-04-22) |
parents | f93aea1def33 |
children | 9f64b4cfa4f6 |
files | l3config.pm l3scripts |
line diff
1.1 --- a/l3config.pm Sat Apr 22 17:21:03 2006 +0300 1.2 +++ b/l3config.pm Sat Apr 22 20:32:48 2006 +0300 1.3 @@ -127,7 +127,7 @@ 1.4 "sshkey" => "$ENV{HOME}/.ssh/id_dsa.pub", 1.5 "lmssh" => "./lm-ssh", 1.6 "lminstall" => "./lm-install", 1.7 - "ssh_user" => "r", 1.8 + "ssh_user" => "root", 1.9 1.10 "l3scripts" => "l3scripts", 1.11
2.1 --- a/l3scripts Sat Apr 22 17:21:03 2006 +0300 2.2 +++ b/l3scripts Sat Apr 22 20:32:48 2006 +0300 2.3 @@ -4,17 +4,21 @@ 2.4 2.5 ###install-lm 2.6 #cat $lminstall | ssh $ssh_user@$host /bin/sh -s $dirs 2.7 +{ 2.8 scp l3config.pm l3-agent $ssh_user@$host:/usr/local/bin 2.9 for i in $dirs 2.10 do 2.11 ssh $ssh_user@$host mkdir -p ${i}/.lilalo/ 2.12 scp l3bashrc $ssh_user@$host:${i}/.lilalo/ 2.13 -done 2.14 - 2.15 -###install-pm 2.16 +done 2.17 scp PM/* $ssh_user@$host:/tmp 2.18 -#ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install' 2.19 +ssh $ssh_user@$host 'grep -q lilalo ~/.bashrc || echo ". ~/.lilalo/l3bashrc && _l3_start" >> ~/.bashrc' 2.20 +ssh $ssh_user@$host 'user=user;grep -q lilalo /home/${user}/.bashrc || echo ". /home/${user}/.lilalo/l3bashrc && _l3_start" >> /home/${user}/.bashrc; chown -R ${user} /home/${user}' 2.21 +ssh $ssh_user@$host 'user=user;grep -q l3-agent ~/.bash_profile || { echo >> ~/.bash_profile ; cat ~/.bash_profile | sed 1s/^/l3-agent\\n/ > /tmp/$$$$l3 ; mv /tmp/$$$$l3 ~/.bash_profile; }' 2.22 +ssh $ssh_user@$host 'user=user;grep -q l3-agent /home/${user}/.bash_profile || { echo >> /home/${user}/.bash_profile ; cat /home/${user}/.bash_profile | sed 1s/^/l3-agent\\n/ > /tmp/$$$$l3 ; mv /tmp/$$$$l3 /home/${user}/.bash_profile; chown -R ${user} /home/${user}; }' 2.23 +ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install' 2.24 ssh $ssh_user@$host 'cd /tmp; tar xfz Text-Iconv*.gz; cd Text-Iconv*[^z]; perl Makefile.PL; make ; make install' 2.25 +} 2.26 2.27 ###copy-lablogs 2.28 for i in $dirs