[matomo-web] Add helper script for running archive job
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [matomo-web] Add helper script for running archive job
- Date: Tue, 29 Dec 2020 20:15:25 +0000 (UTC)
commit e2e033df75a97d5e3254bd66d53a5062a110fc05
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Dec 29 21:15:19 2020 +0100
Add helper script for running archive job
matomo/Dockerfile | 3 ++-
matomo/archive.sh | 7 +++++++
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/matomo/Dockerfile b/matomo/Dockerfile
index ef82a2f..23e4727 100644
--- a/matomo/Dockerfile
+++ b/matomo/Dockerfile
@@ -37,6 +37,7 @@ RUN mkdir -p /opt/matomo/extra-plugins && \
find LoginLdap -type f | xargs chmod 644 && \
rm -f /var/www/html/plugins/LoginLdap-4.2.2.zip /var/www/html/vendor/wikimedia/less.php/bin/lessc
-COPY start.sh /
+ADD start.sh /start.sh
+ADD archive.sh /archive.sh
CMD ["/start.sh"]
diff --git a/matomo/archive.sh b/matomo/archive.sh
new file mode 100755
index 0000000..a80feb0
--- /dev/null
+++ b/matomo/archive.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+/usr/local/bin/geoipupdate -v
+cp /usr/local/share/GeoIP/*.mmdb /var/www/html/misc
+
+cp -r /opt/matomo/extra-plugins/* /var/www/html/plugins/
+php console core:archive
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]