Skip to content

Commit

Permalink
Release 3.9.9 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Jul 28, 2023
1 parent edc5c2d commit ef9973f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 3.9.9 2023-07-28 <dave at tiredofit dot ca>

### Changed
- Roll back to PHP 8.1 due to broken archiving of reports
- Fix issue with .bashrc getting overwritten for 'console' command
- Redo scheduled task for archiving of reports


## 3.9.8 2023-07-17 <dave at tiredofit dot ca>

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PHP_VERSION=8.2
ARG PHP_VERSION=8.1
ARG DISTRO="alpine"

FROM docker.io/tiredofit/nginx-php-fpm:${PHP_VERSION}-${DISTRO}
Expand Down
1 change: 0 additions & 1 deletion install/assets/cron/matomo-archiver

This file was deleted.

22 changes: 7 additions & 15 deletions install/etc/cont-init.d/30-matomo
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,19 @@ PROCESS_NAME="matomo"

check_service_initialized init 20-php-fpm

### Adjust Runtime Variables
sed -i -e "s#<CRON_PERIOD>#${CRON_PERIOD}#g" /assets/cron/matomo-archiver
sed -i -e "s#<WEBROOT>#${NGINX_WEBROOT}#g" /assets/cron/matomo-archiver
sed -i -e "s#<TIMEZONE>#${TIMEZONE}#g" /assets/cron/matomo-archiver
sed -i -e "s#<NGINX_USER>#${NGINX_USER}#g" /assets/cron/matomo-archiver

sanity_db
db_ready mariadb

### Check to see if Matomo Installed, if not, download and setup..
if [ ! -f ${NGINX_WEBROOT}/index.php ]; then
if [ ! -f "${NGINX_WEBROOT}"/index.php ]; then
print_warn "No Matomo Installation Found, Installing..."
mkdir -p ${NGINX_WEBROOT}
curl https://builds.matomo.org/piwik-latest.tar.gz | tar xfz - --strip 1 -C ${NGINX_WEBROOT}
curl https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | gunzip -c >${NGINX_WEBROOT}/misc/GeoIPCity.dat
chown -R ${NGINX_USER}:${NGINX_GROUP} ${NGINX_WEBROOT}
mkdir -p "${NGINX_WEBROOT}"
curl https://builds.matomo.org/piwik-latest.tar.gz | tar xfz - --strip 1 -C "${NGINX_WEBROOT}"
curl https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | gunzip -c > "${NGINX_WEBROOT}"/misc/GeoIPCity.dat
print_info "Install Complete"
fi

echo "alias console='cd /www/html; sudo -u nginx php ./console'" > /root/.bashrc
echo "*/${CRON_PERIOD} * * * * sudo -u ${NGINX_USER} TZ=${TIMEZONE} php ${NGINX_WEBROOT}/console core:archive >/dev/null 2>&1" > /assets/cron/matomo_archive_reports
echo "alias console='cd ${NGINX_WEBROOT}; sudo -u ${NGINX_USER} php ./console'" >> /root/.bashrc
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${NGINX_WEBROOT}"

### Set Permissions
chown -R ${NGINX_USER}:${NGINX_GROUP} ${NGINX_WEBROOT}
liftoff

0 comments on commit ef9973f

Please sign in to comment.