summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-23 15:45:53 +0200
committerBjörn Geiger2011-08-23 15:45:53 +0200
commitd1cbf00cb66f9800b84661ff030843a8b2d189c7 (patch)
tree9732137af255b1cc555bb0501888508b84f04ac1 /install.sh
parentkleine Korrektur (diff)
downloadpoolctrl-d1cbf00cb66f9800b84661ff030843a8b2d189c7.tar.gz
poolctrl-d1cbf00cb66f9800b84661ff030843a8b2d189c7.tar.xz
poolctrl-d1cbf00cb66f9800b84661ff030843a8b2d189c7.zip
minor
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 7 insertions, 5 deletions
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