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: If98c203540c2bf06e15a37357d8a1944a9617dbc
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Aug 5, 2022
1 parent d68d0ea commit 0956848
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
NEED_TO_START_REGISTRY=${START_OPENVSX:-false}

# start only if wanted
if [ "${NEED_TO_START_REGISTRY}" == "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 0956848

Please sign in to comment.