Jelajahi Sumber

Dockerfile: only create versionless link when needed

Markus Neteler 3 tahun lalu
induk
melakukan
0e0d05ea53
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -112,7 +112,7 @@ RUN ./configure \
     && make -j $NUMTHREADS && make install && ldconfig
 
 # 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
 RUN apt-get autoremove -y