summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-12 12:36:34 +0200
committerBjörn Geiger2011-09-12 12:36:34 +0200
commit1e21900fa94e0469cdf5444337fbe66a99e0177f (patch)
treeed61f4fe2af6a61d92bd71e7c95cc95ec7ebfc70 /install.sh
parentchmod +x (diff)
downloadpoolctrl-1e21900fa94e0469cdf5444337fbe66a99e0177f.tar.gz
poolctrl-1e21900fa94e0469cdf5444337fbe66a99e0177f.tar.xz
poolctrl-1e21900fa94e0469cdf5444337fbe66a99e0177f.zip
verschiedene Korrekturen
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 936321d..99d4a1a 100755
--- a/install.sh
+++ b/install.sh
@@ -15,6 +15,7 @@ echo "Copying to /var/www/"
sourceDir=$(readlink -f $(dirname $(readlink -f $0)))
echo -n "enter vhost name: "
read vhost_name
+sed -e "35s/\$/$vhost_name/" -i $targetDir/application/configs/application.ini
targetDir="/var/www/$vhost_name"
mkdir -p $targetDir
cp -R $sourceDir/* $targetDir
@@ -71,12 +72,12 @@ sed -e "21s/\$/$pbs2_host/" -i $targetDir/application/configs/application.ini
echo -n "Please enter host of gearman server [localhost]: "
read gearman_server_host
[ "x" = "x$gearman_server_host" ] && gearman_server_host="localhost"
-sed -e "35s/\$/$gearman_server_host/" -i $targetDir/application/configs/application.ini
+sed -e "38s/\$/$gearman_server_host/" -i $targetDir/application/configs/application.ini
echo -n "Please enter port of gearman server [4730]: "
read gearman_server_port
[ "x" = "x$gearman_server_port" ] && gearman_server_port="4730"
-sed -e "36s/\$/$gearman_server_port/" -i $targetDir/application/configs/application.ini
+sed -e "39s/\$/$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