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

Again

parent 8c457e60
No related branches found
No related tags found
No related merge requests found
...@@ -113,8 +113,11 @@ echo "Created new configuration file: $settings_file" ...@@ -113,8 +113,11 @@ echo "Created new configuration file: $settings_file"
echo "" echo ""
echo "WARNING: Copying $root_htaccess as .htaccess in parent directory" echo "WARNING: Copying $root_htaccess as .htaccess in parent directory"
echo "" echo ""
cp $root_htaccess $parent_htaccess echo "RewriteEngine on" > $parent_htaccess
echo >> $parent_htaccess
echo "RewriteRule ^\$ $1/index.php [L]" >> $parent_htaccess
cat $root_htaccess >> $parent_htaccess
echo "RewriteRule ^(.+)\$ $lodspeakr_dir/index.php?q=\$1 [L]" >> $parent_htaccess
mkdir cache mkdir cache
echo echo
......
...@@ -19,8 +19,6 @@ if [ ! -e "$home" ]; then ...@@ -19,8 +19,6 @@ if [ ! -e "$home" ]; then
$GIT clone $lodspeakr_repository $GIT clone $lodspeakr_repository
cd $home cd $home
./install.sh $lodspeakr_dir ./install.sh $lodspeakr_dir
cd .. else
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." 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