ensure /pialerd path backwards compatibility

This commit is contained in:
jokob-sk
2022-08-05 11:56:01 +10:00
parent e6d75b411a
commit 50ccdcf0d0

View File

@@ -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 <url>/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"]