1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
--- a/arb_install.sh
+++ b/arb_install.sh
@@ -13,7 +13,6 @@
cont() {
echo "Warning: $@" 1>&2
echo 'Do you want to continue [y]'
- read var
case "$var" in
n) err "Script aborted by user" ;;
*) echo 'Continuing...' ;;
@@ -79,7 +78,6 @@
fi
echo "Enter full installation path: [${ARBHOME:-/usr/arb}]"
-read ARBHOMEI
echo
echo
@@ -127,7 +125,6 @@
echo ' You can delete the old directory before installing ARB'
echo ' or only update/change options of the old version.'
echo 'Delete old directory (y/n)[n]?'
- read delete_dir
echo
case "$delete_dir" in
y)
@@ -163,7 +160,6 @@
separator
echo "Old ARB package found (type n to change only some options)."
echo " Do you want to update the old package: (y/n)[y]"
- read var;
case "$var" in
n)
echo "Old version unchanged";;
@@ -197,7 +193,6 @@
echo ' 2. "Path" to link pt_server data directory to'
echo " (if you choose this option you won't loose your PT-Servers when doing future software updates)"
echo 'Enter path:'
-read pt_dir
echo
case "$pt_dir" in
"")
@@ -222,7 +217,6 @@
if test -d ${ARBHOME}/lib/pts; then
echo ">>> data in default location found"
echo 'Do you want to remove old ptserver data (recommended)? [y]'
- read ANSWER
case "$ANSWER" in
n) echo 'data not deleted' ;;
*) rm -r lib/pts
@@ -247,7 +241,6 @@
echo ' n: if PT_SERVER files shall only be changable by administrator'
echo ' or simply press return to keep the settings of an old installation.'
echo 'Should everybody be allowed to build/update PT_SERVER files (y/n/dont_change)[dont_change]?'
-read var
echo
case "$var" in
y)
@@ -273,7 +266,6 @@
echo ' n: if there are some mean untrusty users'
echo ' or simply press return to keep the old settings'
echo 'Do you trust your users (y/n/dont_change)[dont_change]?'
-read var
echo
case "$var" in
y)
@@ -310,7 +302,6 @@
echo 'Choose (s/n)[s]?'
fi
-read var
echo
@@ -322,7 +313,6 @@
n)
separator
echo "Enter the name of your host for the pt_server"
- read host
echo "Checking connection to $host"
if ssh $host ls >/dev/zero; then
echo ">>> ssh $host ok"
@@ -341,7 +331,7 @@
echo ">>> Installation Complete"
separator
-SHELL_ANS=0
+SHELL_ANS=1
while [ "$SHELL_ANS" = "0" ]; do
@@ -359,7 +349,6 @@
echo "Enter (1,2 or 3) to achieve further installation instructions:"
- read var
echo '';
echo '**********************************************************************************************';
|