From d1cbf00cb66f9800b84661ff030843a8b2d189c7 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Tue, 23 Aug 2011 15:45:53 +0200 Subject: minor --- install.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 51ece48..936321d 100755 --- a/install.sh +++ b/install.sh @@ -66,15 +66,17 @@ sed -e "14s/\$/$db_name/" -i $targetDir/application/configs/application.ini echo -n "Please enter host of pbs2: " read pbs2_host -sed -e "19s/\$/$pbs2_host/" -i $targetDir/application/configs/application.ini +sed -e "21s/\$/$pbs2_host/" -i $targetDir/application/configs/application.ini -echo -n "Please enter host of gearman server: " +echo -n "Please enter host of gearman server [localhost]: " read gearman_server_host -sed -e "33s/\$/$gearman_server_host/" -i $targetDir/application/configs/application.ini +[ "x" = "x$gearman_server_host" ] && gearman_server_host="localhost" +sed -e "35s/\$/$gearman_server_host/" -i $targetDir/application/configs/application.ini -echo -n "Please enter port of gearman server: " +echo -n "Please enter port of gearman server [4730]: " read gearman_server_port -sed -e "34s/\$/$gearman_server_port/" -i $targetDir/application/configs/application.ini +[ "x" = "x$gearman_server_port" ] && gearman_server_port="4730" +sed -e "36s/\$/$gearman_server_port/" -i $targetDir/application/configs/application.ini echo "Create database and tables" cat $targetDir/setup/poolctrl.sql | sed -e "s,##poolctrl##,$db_name," > /tmp/poolctrl.sql -- cgit v1.2.3-55-g7522