mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-31 04:54:43 +00:00
Remove flatten_matomo_layout function
Removed the flatten_matomo_layout function and its calls.
This commit is contained in:
committed by
GitHub
parent
a23f908aa1
commit
d79bac326b
@@ -19,17 +19,6 @@ variables
|
|||||||
color
|
color
|
||||||
catch_errors
|
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() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
@@ -45,8 +34,6 @@ function update_script() {
|
|||||||
systemctl stop caddy
|
systemctl stop caddy
|
||||||
msg_ok "Stopped Services"
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
flatten_matomo_layout
|
|
||||||
|
|
||||||
msg_info "Backing up Data"
|
msg_info "Backing up Data"
|
||||||
[[ -f /opt/matomo/config/config.ini.php ]] && cp /opt/matomo/config/config.ini.php /opt/matomo_config.bak
|
[[ -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
|
[[ -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"
|
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"
|
msg_info "Restoring Data"
|
||||||
if [[ -f /opt/matomo_config.bak ]]; then
|
if [[ -f /opt/matomo_config.bak ]]; then
|
||||||
mkdir -p /opt/matomo/config
|
mkdir -p /opt/matomo/config
|
||||||
|
|||||||
Reference in New Issue
Block a user