Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
e91159b0
Commit
e91159b0
authored
16 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
replace distribution keystores only if ~/.keystore exists.
SVN: 10697
parent
c1eafe16
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
openbis_all/source/bash/sprint_install.sh
+16
-8
16 additions, 8 deletions
openbis_all/source/bash/sprint_install.sh
with
16 additions
and
8 deletions
openbis_all/source/bash/sprint_install.sh
+
16
−
8
View file @
e91159b0
...
...
@@ -2,6 +2,10 @@
# Performs the sprint components installation.
# This script assumes that you already are on the sprint server and must be run from that place
# in the home directory.
#
# If the file ~/.keystore exists it will replace openBIS.keystore of the distribution and
# the Java option -Djavax.net.ssl.trustStore=openBIS.keystore in the start up scripts will
# be removed assuming that ~/.keystore does not contains a self-signed certificate.
VER
=
SNAPSHOT
if
[
$1
]
;
then
...
...
@@ -37,10 +41,12 @@ cd sprint
unzip ../openBIS-server
*
$VER
*
cd
openBIS-server
./install.sh
--nostartup
$PWD
../../service.properties
cp
-p
$KEYSTORE
apache-tomcat/openBIS.keystore
sed
's/-Djavax.net.ssl.trustStore=openBIS.keystore //g'
apache-tomcat/bin/startup.sh
>
new-startup.sh
mv
-f
new-startup.sh apache-tomcat/bin/startup.sh
chmod
744 apache-tomcat/bin/startup.sh
if
[
-f
$KEYSTORE
]
;
then
cp
-p
$KEYSTORE
apache-tomcat/openBIS.keystore
sed
's/-Djavax.net.ssl.trustStore=openBIS.keystore //g'
apache-tomcat/bin/startup.sh
>
new-startup.sh
mv
-f
new-startup.sh apache-tomcat/bin/startup.sh
chmod
744 apache-tomcat/bin/startup.sh
fi
apache-tomcat/bin/startup.sh
echo
Installing datastore server...
...
...
@@ -48,10 +54,12 @@ cd ..
unzip ../datastore_server
*
$VER
*
cd
datastore_server
cp
-p
~/datastore_server-service.properties etc/service.properties
cp
-p
$KEYSTORE
etc/openBIS.keystore
cp
-Rf
~/old/sprint-
$PREV_VER
/datastore_server/data/store/
*
data/store
sed
's/-Djavax.net.ssl.trustStore=etc\/openBIS.keystore //g'
datastore_server.sh
>
xxx
mv
-f
xxx datastore_server.sh
if
[
-f
$KEYSTORE
]
;
then
cp
-p
$KEYSTORE
etc/openBIS.keystore
cp
-Rf
~/old/sprint-
$PREV_VER
/datastore_server/data/store/
*
data/store
sed
's/-Djavax.net.ssl.trustStore=etc\/openBIS.keystore //g'
datastore_server.sh
>
xxx
mv
-f
xxx datastore_server.sh
fi
chmod
744 datastore_server.sh
export
JAVA_HOME
=
/usr
./datastore_server.sh start
...
...
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