From d9c1b43a6e9a1c73a737f085872bd414cf93ba94 Mon Sep 17 00:00:00 2001 From: alvaro <alvaro@alia.(none)> Date: Wed, 29 Feb 2012 15:51:05 -0800 Subject: [PATCH] Parametrizing lodspeakr directory for installation --- root.htaccess | 2 +- utils/install | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/root.htaccess b/root.htaccess index d782c960..bee4ad30 100644 --- a/root.htaccess +++ b/root.htaccess @@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !.*/index.php$ -RewriteRule ^(.+)$ lodspeakr/index.php?q=$1 [L] + diff --git a/utils/install b/utils/install index 29935f55..5d22ffa5 100644 --- a/utils/install +++ b/utils/install @@ -3,6 +3,7 @@ # Author: Alvaro Graves (alvaro@graves.cl) # Modified by: Tim Lebo (lebot@rpi.edu) +lodspeakr_dir="lodspeakr" lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git" home=`basename $lodspeakr_repository | sed 's/.git//'` @@ -18,6 +19,8 @@ if [ ! -e "$home" ]; then $GIT clone $lodspeakr_repository cd $home ./install.sh + cd .. + echo "RewriteRule ^(.+)$ $lodspeakr_dir/index.php?q=$1 [L]" >> .htaccess else echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again." fi -- GitLab