add hook, fix demo script

This commit is contained in:
Cold-Egg
2020-01-15 15:34:04 -05:00
parent bcf12dbf18
commit 3a1aa4c6fb
5 changed files with 36 additions and 7 deletions
+2
View File
@@ -21,6 +21,8 @@ RUN apt-get install -y software-properties-common && \
apt-get update && \
apt-get install -y certbot python-certbot-apache
RUN sed 's/0.*.certbot/& --deploy-hook "\/usr\/local\/lsws\/bin\/lswsctrl restart"/g' /etc/cron.d/certbot
RUN rm -rf /usr/local/lsws/conf
ADD conf /usr/local/lsws/conf
RUN chown 999:999 /usr/local/lsws/conf -R