Skip to content

Commit

Permalink
Also set the property on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Feb 19, 2018
1 parent 219a7a8 commit da67654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 60-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ psql -w -h "$DBHOST" -U "$DBUSER" "$DBNAME" -c \
} || {
if [ "$DBNAME_src" = default ]; then
$omero config set omero.db.name "$DBNAME"
# And set for restarts
echo config set omero.db.name \"$DBNAME\" > /opt/omero/server/config/60-database.omero
fi
echo "Initialising database"
$omego db init --rootpass "$ROOTPASS" --serverdir=OMERO.server
Expand Down

0 comments on commit da67654

Please sign in to comment.