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
c2f1e290
Commit
c2f1e290
authored
13 years ago
by
Timothy Lebo
Browse files
Options
Downloads
Patches
Plain Diff
added slash to ns for #2
parent
5607f0c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+14
-20
14 additions, 20 deletions
install.sh
with
14 additions
and
20 deletions
install.sh
+
14
−
20
View file @
c2f1e290
...
...
@@ -33,38 +33,33 @@ while [ "$everything_ok" != "y" ]; do
echo
aux_basedir
=
"
`
echo
$aux_basedir
|
sed
's/\/$//'
`
/"
# remove any ending slash and append one.
if
[
"
$aux_basedir
"
!=
"/"
]
;
then
basedir
=
`
dirname
$aux_basedir
`
basedir
=
`
dirname
$aux_basedir
|
sed
's/\/$//'
`
/
fi
ns
=
$basedir
echo
"(2/3) What local namespace you will use?"
echo
-n
"(default '
$ns
'): "
read
-u
1 aux_ns
echo
""
if
[
"
$aux_ns
"
!=
""
]
then
ns
=
$aux_ns
if
[
"
$aux_ns
"
!=
""
]
;
then
ns
=
$aux_ns
fi
external
=
""
extra
=
""
if
[[
"
$basedir
"
=
~ ^
"
$ns
"
]]
;
then
external
=
"false"
external
=
"false"
else
external
=
"true"
extra
=
"
\$
conf['ns']['base'] = '
$basedir
';"
external
=
"true"
extra
=
"
\$
conf['ns']['base'] = '
$basedir
';"
fi
echo
"(3/3) What is the URL of your SPARQL endpoint?"
echo
-n
"(default
$endpoint
): "
read
-u
1 aux_endpoint
echo
""
if
[
"
$aux_endpoint
"
!=
""
]
then
endpoint
=
$aux_endpoint
if
[
"
$aux_endpoint
"
!=
""
]
;
then
endpoint
=
$aux_endpoint
fi
echo
"== Configuration =="
...
...
@@ -77,15 +72,14 @@ while [ "$everything_ok" != "y" ]; do
echo
-n
"Is everything ok (y/n)?"
read
-u
1 everything_ok
done
if
[
-e
"
$settings_file
"
]
;
then
ts
=
`
date
+%s
`
settings_backup
=
"
$settings_file
.
$ts
"
echo
"Making a backup of existing settings at
$settings_backup
"
mv
$settings_file
$settings_backup
fi
if
[
-e
"
$settings_file
"
]
;
then
ts
=
`
date
+%s
`
settings_backup
=
"
$settings_file
.
$ts
"
echo
"Making a backup of existing settings at
$settings_backup
"
mv
$settings_file
$settings_backup
fi
LODSPEAKR_HOME
=
`
pwd
`
/
...
...
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