Files
ProxmoxVE/ct/wordpress.sh
CanbiZ 7f798effd8 fix(ct): add setup_mariadb to update_script for repo updates
When MariaDB is installed with a specific version (e.g. 12.1.1), the
repository URL becomes stale when that version is removed from mirrors.
This causes 'apt update' to fail with 404 errors.

Adding setup_mariadb to update_script ensures the MariaDB repository
is updated to the current version before any apt operations run.

Affected scripts (31):
- 2fauth, apache-guacamole, booklore, bookstack, dolibarr
- domain-monitor, firefly, ghost, glpi, hortusfox
- invoiceninja, itsm-ng, kimai, leantime, librenms
- limesurvey, managemydamnlife, mariadb, monica, passbolt
- paymenter, pelican-panel, phpipam, plant-it, projectsend
- pterodactyl-panel, shinobi, snipeit, wallabag, wavelog, wordpress
2025-12-16 13:00:44 +01:00

43 lines
1.1 KiB
Bash

#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 communtiy-scripts ORG
# Author: MickLesk (Canbiz)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://wordpress.org/
## App Default Values
APP="Wordpress"
var_tags="${var_tags:-blog;cms}"
var_disk="${var_disk:-5}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /var/www/html/wordpress ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
setup_mariadb
msg_error "Wordpress should be updated via the user interface."
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN} ${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}/${CL}"