From 50ccdcf0d08c3dda875925b561d0d9bd8a034217 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Fri, 5 Aug 2022 11:56:01 +1000 Subject: [PATCH] ensure /pialerd path backwards compatibility --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 122e67e0..da69ee08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,6 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/www/html \ && ln -s /home/pi/pialert/front /var/www/html \ - && ln -s /home/pi/pialert/front /var/www/html/pialert \ && lighttpd-enable-mod fastcgi-php @@ -38,4 +37,7 @@ RUN python /home/pi/pialert/back/pialert.py update_vendors \ # it's easy for permissions set in Git to be overridden, so doing it manually RUN chmod -R a+rxw /home/pi/pialert/ +# keep backward-compatibility with old links using /pialert as a base (remove in 2023) +RUN ln -s /home/pi/pialert/front /var/www/html/pialert + CMD ["/home/pi/pialert/dockerfiles/start.sh"]