Skip to content

Commit

Permalink
Added logic to remove circular links (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpritter76 authored and CyberDem0n committed Feb 25, 2019
1 parent 4e4b8bf commit 85da543
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions postgres-appliance/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& if [ -d /usr/share/postgresql/9.5/contrib/postgis-$POSTGIS_VERSION ]; then \
cd /usr/share/postgresql/9.5/contrib/postgis-$POSTGIS_VERSION \
&& for f in *.sql *.pl; do \
for v in 9.4 9.6 10; do \
if [ -f /usr/share/postgresql/$v/contrib/postgis-$POSTGIS_VERSION/$f ] \
if [ -L $f ]; then continue; fi \
&& for v in $PGOLDVERSIONS; do \
if [ $v != 9.5 ] && [ -f /usr/share/postgresql/$v/contrib/postgis-$POSTGIS_VERSION/$f ] \
&& [ ! -L /usr/share/postgresql/$v/contrib/postgis-$POSTGIS_VERSION/$f ] \
&& diff /usr/share/postgresql/$v/contrib/postgis-$POSTGIS_VERSION/$f $f > /dev/null; then \
rm /usr/share/postgresql/$v/contrib/postgis-$POSTGIS_VERSION/$f \
Expand Down Expand Up @@ -331,8 +332,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& if [ -d /usr/share/postgresql/9.5/extension ]; then \
cd /usr/share/postgresql/9.5/extension \
&& for f in *.sql *.control; do \
for v in 9.3 9.4 9.6 10; do \
if [ -f /usr/share/postgresql/$v/extension/$f ] \
if [ -L $f ]; then continue; fi \
&& for v in $PGOLDVERSIONS; do \
if [ $v != 9.5 ] && [ -f /usr/share/postgresql/$v/extension/$f ] \
&& [ ! -L /usr/share/postgresql/$v/extension/$f ] \
&& diff /usr/share/postgresql/$v/extension/$f $f > /dev/null; then \
rm /usr/share/postgresql/$v/extension/$f \
Expand Down

0 comments on commit 85da543

Please sign in to comment.