Browse Source

Dockerfile: only create versionless link when needed

Markus Neteler 3 years ago
parent
commit
0e0d05ea53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -112,7 +112,7 @@ RUN ./configure \
     && make -j $NUMTHREADS && make install && ldconfig
     && make -j $NUMTHREADS && make install && ldconfig
 
 
 # enable simple grass command regardless of version number
 # enable simple grass command regardless of version number
-RUN ln -s /usr/local/bin/grass* /usr/local/bin/grass
+RUN if [ ! -e /usr/local/bin/grass ] ; then ln -s /usr/local/bin/grass* /usr/local/bin/grass ; fi
 
 
 # Reduce the image size
 # Reduce the image size
 RUN apt-get autoremove -y
 RUN apt-get autoremove -y