mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-17 04:33:31 +01:00
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
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
# Copyright (c) 2021-2025 tteck
|
|
# Author: tteck (tteckster)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://mariadb.org/
|
|
|
|
APP="MariaDB"
|
|
var_tags="${var_tags:-database}"
|
|
var_cpu="${var_cpu:-1}"
|
|
var_ram="${var_ram:-1024}"
|
|
var_disk="${var_disk:-4}"
|
|
var_os="${var_os:-debian}"
|
|
var_version="${var_version:-13}"
|
|
var_unprivileged="${var_unprivileged:-1}"
|
|
|
|
header_info "$APP"
|
|
variables
|
|
color
|
|
catch_errors
|
|
|
|
function update_script() {
|
|
header_info
|
|
check_container_storage
|
|
check_container_resources
|
|
if [[ ! -d /etc/mysql/mariadb.conf.d ]]; then
|
|
msg_error "No ${APP} Installation Found!"
|
|
exit
|
|
fi
|
|
setup_mariadb
|
|
msg_info "Updating ${APP} LXC"
|
|
$STD apt update
|
|
$STD apt -y upgrade
|
|
msg_ok "Updated successfully!"
|
|
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 IP:${CL}"
|
|
echo -e "${TAB}${GATEWAY}${BGN}${IP}:3306${CL}"
|