lilalo
diff l3scripts @ 104:77f033a04361
Пофиксил приглашение
author | devi |
---|---|
date | Tue Jun 27 10:58:57 2006 +0300 (2006-06-27) |
parents | 45196265d30e |
children | 54fbf2041159 |
line diff
1.1 --- a/l3scripts Sat Apr 22 17:08:05 2006 +0300 1.2 +++ b/l3scripts Tue Jun 27 10:58:57 2006 +0300 1.3 @@ -4,17 +4,21 @@ 1.4 1.5 ###install-lm 1.6 #cat $lminstall | ssh $ssh_user@$host /bin/sh -s $dirs 1.7 +{ 1.8 scp l3config.pm l3-agent $ssh_user@$host:/usr/local/bin 1.9 for i in $dirs 1.10 do 1.11 ssh $ssh_user@$host mkdir -p ${i}/.lilalo/ 1.12 scp l3bashrc $ssh_user@$host:${i}/.lilalo/ 1.13 -done 1.14 - 1.15 -###install-pm 1.16 +done 1.17 scp PM/* $ssh_user@$host:/tmp 1.18 -#ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install' 1.19 +ssh $ssh_user@$host 'grep -q lilalo ~/.bashrc || echo ". ~/.lilalo/l3bashrc && _l3_start" >> ~/.bashrc' 1.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}' 1.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; }' 1.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}; }' 1.23 +ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install' 1.24 ssh $ssh_user@$host 'cd /tmp; tar xfz Text-Iconv*.gz; cd Text-Iconv*[^z]; perl Makefile.PL; make ; make install' 1.25 +} 1.26 1.27 ###copy-lablogs 1.28 for i in $dirs