summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-04-21 17:54:19 +0200
committerSebastian Schmelzer2011-04-21 17:54:19 +0200
commitf6ed91e686c0efd69461938c65c4274f01fd0f32 (patch)
tree0c747ee690e8364ac062230398922356abf83078 /install.sh
parentupdate installer .. (diff)
downloadpbs2-f6ed91e686c0efd69461938c65c4274f01fd0f32.tar.gz
pbs2-f6ed91e686c0efd69461938c65c4274f01fd0f32.tar.xz
pbs2-f6ed91e686c0efd69461938c65c4274f01fd0f32.zip
update installer ..
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index f022c89..a97c400 100755
--- a/install.sh
+++ b/install.sh
@@ -20,8 +20,8 @@ mkdir -p $targetDir
cp -R $sourceDir/* $targetDir
echo "Creating pbs2 host..."#
-mkdir -p $targetDir/library/Zend
-ln -s /usr/share/php/libzend-framework-php/Zend/ $targetDir/library/Zend
+mkdir -p $targetDir/library
+ln -sf /usr/share/php/libzend-framework-php/Zend $targetDir/library/
cat > /etc/apache2/sites-available/$vhost_name << EOF
<VirtualHost *:80>
ServerName $vhost_name
@@ -44,14 +44,16 @@ cp $targetDir/application/configs/application.ini.dist $targetDir/application/co
echo -n "Please enter db admin user [root]: "
read db_admin
-[ -n $db_admin ] || db_admin=root
+[ "x" = "x$db_admin" ] && db_admin="root"
echo -n "Please enter the password for db admin user $db_admin: "
+stty -echo
read db_adminpass
+stty echo
echo -n "Please enter username for pbs db: "
read db_user
-sed -e 13s/$/$db_user/ -i $targetDir/application/configs/application.ini
+sed -e "13s/\$/$db_user/" -i $targetDir/application/configs/application.ini
#echo -n "Please enter password for pbs db user $databaseuser: "
#read databasepassword
@@ -60,6 +62,7 @@ sed -e "14s/\$/$db_pass/" -i $targetDir/application/configs/application.ini
echo -n "Enter database name: "
read db_name
+sed -e "15s/\$/$db_name/" -i $targetDir/application/configs/application.ini
echo "Create database and tables"
cat $targetDir/setup/pbs.sql | sed -e "s,##pbs##,$db_name," > /tmp/pbs.sql
@@ -82,4 +85,4 @@ rm /tmp/pbs-data.sql
echo "woho - pbs2 is ready to use"
echo "You can reach your installed pbs2 server under http://$vhost_name/"
-echo "Login with username: 'test' and pasword 'test' and change the Passwort and eMail IMMEDIATELY!!!"
+echo "Login with username: 'test' and password 'test' and change the Passwort and eMail IMMEDIATELY!!!"