#Pattern not found (press RETURN)
19 lilalo_rc=.l3rci '(bsd|darwin)' && wget=fetch
20 lilalo_home=.lilalo
21 url_lilalo="http://xgu.ru/lilalo"nstall_this
22 url_l3bashrc="${url_lilalo}"/l3bashrcncies manually:"
echo $apt_get_install_this
23 url_l3agent="${url_lilalo}"/l3-agentready (y/n)?"
echo y | read answer
24 url_l3config_pm="${url_lilalo}"/l3config.pm
then
25 url_l3config="${url_lilalo}"/l3-config
else
26 url_l3prompt="${url_lilalo}"/l3promptdencies and rerun the script
exit 1
27 url_perl_modules=${url_lilalo}/
28 perl_modules="Term-VT102 Text-Iconv"
29 if which apt-get >& /dev/null
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31
32 wget=wget
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
34
35 normC='\033[0;39m'
36 whiteC='\033[1;37m'
37 redC='\033[0;31m'
38 greenC='\033[0;32m'
39
40 apt_get_install_deps()
41 {
42 return 0
43 if which apt-get >& /dev/null
44 then
45 apt-get install -y $apt_get_install_this
46 else
47 echo "Please install this dependencies manually:"
48 echo $apt_get_install_this
49 echo "Have you installed this already (y/n)?"
1 #!/bin/sh
2
3 hostname=`hostname`
4 uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
5
6 ###############################################################################
7 #
8 # Set this variables before installation:
9
10 lilalo_user=13-10-2014
11 lab=NT-LNet
12 install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
13 lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
14
15 #
16 ###############################################################################
17
18
19 lilalo_rc=.l3rc
20 lilalo_home=.lilalo
21 url_lilalo="http://xgu.ru/lilalo"
22 url_l3bashrc="${url_lilalo}"/l3bashrc
23 url_l3agent="${url_lilalo}"/l3-agent
24 url_l3config_pm="${url_lilalo}"/l3config.pm
25 url_l3config="${url_lilalo}"/l3-config
26 url_l3prompt="${url_lilalo}"/l3prompt
27 url_perl_modules=${url_lilalo}/
28 perl_modules="Term-VT102 Text-Iconv"
29
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31
32 wget=wget
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
34
35 normC='\033[0;39m'
36 whiteC='\033[1;37m'
37 redC='\033[0;31m'
38 greenC='\033[0;32m'
39
40 apt_get_install_deps()
41 {
42 return 0
43 if which apt-get >& /dev/null
44 then
45 apt-get install -y $apt_get_install_this
46 else
47 echo "Please install this dependencies manually:"
48 echo $apt_get_install_this
49 echo "Have you installed this already (y/n)?"
50 echo y | read answer
51 if echo $answer | grep -q ^[yY]
52 then
53 true
54 else
55 echo Please install the dependencies and rerun the script
56 exit 1
57 fi
58 fi
59 }
60
61