Skip to content
Snippets Groups Projects
Commit d9c1b43a authored by alvaro's avatar alvaro
Browse files

Parametrizing lodspeakr directory for installation

parent 33848664
No related branches found
No related tags found
No related merge requests found
...@@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f ...@@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !.*/index.php$ RewriteCond %{SCRIPT_FILENAME} !.*/index.php$
RewriteRule ^(.+)$ lodspeakr/index.php?q=$1 [L]
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# Author: Alvaro Graves (alvaro@graves.cl) # Author: Alvaro Graves (alvaro@graves.cl)
# Modified by: Tim Lebo (lebot@rpi.edu) # Modified by: Tim Lebo (lebot@rpi.edu)
lodspeakr_dir="lodspeakr"
lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git" lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git"
home=`basename $lodspeakr_repository | sed 's/.git//'` home=`basename $lodspeakr_repository | sed 's/.git//'`
...@@ -18,6 +19,8 @@ if [ ! -e "$home" ]; then ...@@ -18,6 +19,8 @@ if [ ! -e "$home" ]; then
$GIT clone $lodspeakr_repository $GIT clone $lodspeakr_repository
cd $home cd $home
./install.sh ./install.sh
cd ..
echo "RewriteRule ^(.+)$ $lodspeakr_dir/index.php?q=$1 [L]" >> .htaccess
else else
echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again." echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again."
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment