Skip to content

Commit

Permalink
fixup! feat: Allow to use OpenVsx in plug-in registry
Browse files Browse the repository at this point in the history
Change-Id: I5ce218802e2f17453b3cc4f1f0ccdde12914eb8b
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Aug 16, 2022
1 parent c7aca23 commit a7ed16e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/dockerfiles/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ function run_main() {
fi
fi

# if /var/lib/pgsql exists
if [ -d /var/lib/pgsql ]; then
# Check if START_OPENVSX has been defined
# if not, default to false
START_OPENVSX=${START_OPENVSX:-false}

# start only if wanted
if [ "${START_OPENVSX}" == "true" ]; then
# change permissions
cp -r /var/lib/pgsql/14/data/old /var/lib/pgsql/14/data/database
rm -rf /var/lib/pgsql/14/data/old
Expand Down

0 comments on commit a7ed16e

Please sign in to comment.