Commit 08919029 authored by David Foucher's avatar David Foucher

Fix logrotate for nginx

parent 51b6b0eb
Pipeline #3733 passed with stage
in 1 minute and 34 seconds
...@@ -42,6 +42,7 @@ COPY --from=back_app_node /srv/trefle/trefle/explorer /srv/trefle/legacy-backoff ...@@ -42,6 +42,7 @@ COPY --from=back_app_node /srv/trefle/trefle/explorer /srv/trefle/legacy-backoff
ARG TREFLE_GIT ARG TREFLE_GIT
ARG TREFLE_OLD_VERSION ARG TREFLE_OLD_VERSION
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
sed -i 's#\(\s\+\)invoke-rc.d.*#\1kill -USR1 $(cat /var/run/nginx.pid)#' /etc/logrotate.d/nginx && \
git clone -b ${TREFLE_OLD_VERSION} ${TREFLE_GIT} /srv/trefle-old && \ git clone -b ${TREFLE_OLD_VERSION} ${TREFLE_GIT} /srv/trefle-old && \
chown -R www-data: /srv/trefle-old && \ chown -R www-data: /srv/trefle-old && \
chmod -R u+rwx /srv/trefle-old chmod -R u+rwx /srv/trefle-old
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment