Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
e9b84f83
Commit
e9b84f83
authored
13 years ago
by
Alvaro Graves
Browse files
Options
Downloads
Patches
Plain Diff
Separating basedir from slodpsdir
parent
d71f7388
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install.sh
+23
-7
23 additions, 7 deletions
install.sh
root.htaccess
+1
-1
1 addition, 1 deletion
root.htaccess
with
24 additions
and
8 deletions
install.sh
+
23
−
7
View file @
e9b84f83
...
...
@@ -11,7 +11,8 @@ mysql_user="root"
mysql_pass
=
""
sparql_key
=
$RANDOM
basedir
=
"http://localhost/slodps/"
basedir
=
"http://localhost/"
slodpsdir
=
"slodps"
ns
=
$basedir
endpoint
=
"http://localhost/sparql?"
everything_ok
=
"n"
...
...
@@ -19,13 +20,10 @@ everything_ok="n"
if
[
-e
"
$parent_htaccess
"
]
then
echo
".htaccess file found in parent directory."
echo
"Please remove it
or add the content of
$root_htaccess
in it
"
echo
"Please remove it
to continue the installation.
"
exit
fi
echo
"WARNING: Copying
$root_htaccess
as .htacess in parent directory"
echo
""
cp
$root_htaccess
$parent_htaccess
while
[
"
$everything_ok
"
!=
"y"
]
do
...
...
@@ -38,6 +36,16 @@ do
then
basedir
=
$aux_basedir
fi
echo
-n
"From the base directory, where is slodps located? (default '
$slodps
'): "
read
aux_slodpsdir
echo
""
if
[
"
$aux_slodpsdir
"
!=
""
]
then
slodpsdir
=
$aux_slodpsdir
fi
ns
=
$basedir
echo
-n
"Type the local namespace you will use (default '
$ns
'): "
read
aux_ns
...
...
@@ -47,6 +55,7 @@ do
ns
=
$aux_ns
fi
echo
-n
"What is the URL of your SPARQL endpoint? (default
$endpoint
): "
read
aux_endpoint
echo
""
...
...
@@ -108,7 +117,8 @@ do
fi
echo
"==Configuration=="
echo
"Ok, so I have the following configuration:"
echo
"slodps is installed at
$basedir
"
echo
"Base URL is
$basedir
"
echo
"slodps is installed at
$basedir$slodpsdir
"
echo
"The local namespace is
$ns
"
echo
"Your SPARQL endpoint is located at
$endpoint
"
echo
"For slodps internal sparql endpoint the configuration is as follows:"
...
...
@@ -154,5 +164,11 @@ done
?>"
echo
"
$content
"
>
$settings_file
chmod
644
$settings_file
echo
"New configuration file created"
echo
""
echo
"WARNING: Copying
$root_htaccess
as .htacess in parent directory"
echo
""
cp
$root_htaccess
$parent_htaccess
echo
'RewriteRule ^(.+)$ '
$slodpsdir
'/index.php?q=$1 [L]'
>>
$parent_htaccess
This diff is collapsed.
Click to expand it.
root.htaccess
+
1
−
1
View file @
e9b84f83
...
...
@@ -3,4 +3,4 @@ RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !.*/index.php$
RewriteRule ^(.+)$ slodps/index.php?q=$1 [L]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment