--- 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 '**********************************************************************************************';