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
dcb7c05b
Commit
dcb7c05b
authored
15 years ago
by
kohleman
Browse files
Options
Downloads
Patches
Plain Diff
added user to pg_dump command
added post_install_script to be run at the end of the installation SVN: 12989
parent
bff0d316
No related branches found
No related tags found
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
+7
-2
7 additions, 2 deletions
openbis_all/source/bash/sprint_install.sh
with
7 additions
and
2 deletions
openbis_all/source/bash/sprint_install.sh
+
7
−
2
View file @
dcb7c05b
...
@@ -46,7 +46,7 @@ echo Making a database dump...
...
@@ -46,7 +46,7 @@ echo Making a database dump...
# A custom-format dump (-Fc flag) is not a script for psql, but instead must be
# A custom-format dump (-Fc flag) is not a script for psql, but instead must be
# restored with pg_restore, for example:
# restored with pg_restore, for example:
# pg_restore -d dbname filename
# pg_restore -d dbname filename
pg_dump
-Fc
$DB_NAME
>
$DB_SNAPSHOT
/
$SERVERS_PREV_VER
-
$DB_NAMEi_
${
DATE
}
.dmp
pg_dump
-Uopenbis
-Fc
$DB_NAME
>
$DB_SNAPSHOT
/
$SERVERS_PREV_VER
-
$DB_NAMEi_
${
DATE
}
.dmp
# we actually need to clean that up from time to time
# we actually need to clean that up from time to time
/usr/bin/find
$DB_SNAPSHOT
-type
f
-mtime
+
$DAYS_TO_RETAIN
-exec
rm
{}
\;
/usr/bin/find
$DB_SNAPSHOT
-type
f
-mtime
+
$DAYS_TO_RETAIN
-exec
rm
{}
\;
...
@@ -87,9 +87,14 @@ export JAVA_HOME=/usr
...
@@ -87,9 +87,14 @@ export JAVA_HOME=/usr
cd
cd
mv
-f
*
.zip tmp
mv
-f
*
.zip tmp
rm
-rf
openbis
rm
-rf
openbis
cd
~/sprint/openBIS-server
rm
apache-tomcat.zip install.sh openbis.conf openBIS.keystore openBIS.war passwd.sh server.xml service.properties tomcat-version.txt
# Reset the rm command alias
# Reset the rm command alias
alias
'rm=rm -i'
alias
'rm=rm -i'
alias
'cp=cp -ipR'
alias
'cp=cp -ipR'
echo
Done, run sprint_post_install.sh and all-up.sh to start the servers!
echo
Running ~/bin/sprint_post_install.sh
~/bin/sprint_post_install.sh
echo
Done, run
'has-config-changed.sh'
and start the servers!
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