From d79bac326b9296fb01311531d04db7703f005cee Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 5 May 2026 08:29:34 +0200 Subject: [PATCH] Remove flatten_matomo_layout function Removed the flatten_matomo_layout function and its calls. --- ct/matomo.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ct/matomo.sh b/ct/matomo.sh index 91b48aa1c..ea355a3be 100644 --- a/ct/matomo.sh +++ b/ct/matomo.sh @@ -19,17 +19,6 @@ variables color catch_errors -function flatten_matomo_layout() { - if [[ -d /opt/matomo/matomo ]]; then - msg_info "Migrating Legacy Layout" - rm -rf /opt/matomo/tmp "/opt/matomo/How to install Matomo.html" - find /opt/matomo/matomo -mindepth 1 -maxdepth 1 -exec mv -t /opt/matomo {} + - rm -rf /opt/matomo/matomo - msg_ok "Migrated Legacy Layout" - fi - -} - function update_script() { header_info check_container_storage @@ -45,8 +34,6 @@ function update_script() { systemctl stop caddy msg_ok "Stopped Services" - flatten_matomo_layout - msg_info "Backing up Data" [[ -f /opt/matomo/config/config.ini.php ]] && cp /opt/matomo/config/config.ini.php /opt/matomo_config.bak [[ -d /opt/matomo/misc/user ]] && cp -r /opt/matomo/misc/user /opt/matomo_user_backup @@ -55,8 +42,6 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "matomo" "matomo-org/matomo" "prebuild" "latest" "/opt/matomo" "matomo-*.zip" - flatten_matomo_layout - msg_info "Restoring Data" if [[ -f /opt/matomo_config.bak ]]; then mkdir -p /opt/matomo/config