summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-30 10:26:40 +0200
committerBjörn Geiger2011-06-30 10:26:40 +0200
commite057188d639148ad73ad919095ff91807d081252 (patch)
tree631244a3059618d553321501f4b20eec21fe2c6f /install.sh
parenthost nun in Application.ini (diff)
downloadpoolctrl-e057188d639148ad73ad919095ff91807d081252.tar.gz
poolctrl-e057188d639148ad73ad919095ff91807d081252.tar.xz
poolctrl-e057188d639148ad73ad919095ff91807d081252.zip
installationsscript angepassst2
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 73d1cca..29662b5 100755
--- a/install.sh
+++ b/install.sh
@@ -64,6 +64,10 @@ echo -n "Enter database name: "
read db_name
sed -e "14s/\$/$db_name/" -i $targetDir/application/configs/application.ini
+echo -n "Please enter host of pbs2: "
+read pbs2_host
+sed -e "18s/\$/$pbs2_host/" -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
mysql -u $db_admin -p$db_adminpass < /tmp/poolctrl.sql