merge MariaDB to tools.func Installer (#4753)

* merge MariaDB to tools.func Installer

* add more mariadb migrations
This commit is contained in:
CanbiZ
2025-05-27 15:32:22 +02:00
committed by GitHub
parent 5ccf8a7cd6
commit ac2f0e66ae
20 changed files with 172 additions and 161 deletions

View File

@@ -16,10 +16,11 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
php-imap \
debconf-utils \
mariadb-server
debconf-utils
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Database"
ROOT_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
$STD sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$ROOT_PASS'); flush privileges;"