From f6ed91e686c0efd69461938c65c4274f01fd0f32 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 21 Apr 2011 17:54:19 +0200 Subject: update installer .. --- install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'install.sh') 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 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!!!" -- cgit v1.2.3-55-g7522