summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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