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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 172 additions and 161 deletions

View File

@ -14,11 +14,8 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
lsb-release \
gpg
lsb-release
curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /usr/share/keyrings/deb.sury.org-php.gpg
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" >/etc/apt/sources.list.d/php.list
$STD apt-get update
@ -26,10 +23,11 @@ $STD apt-get update
$STD apt-get install -y \
nginx \
composer \
php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,intl,mbstring,mysql,xml,cli} \
mariadb-server
php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,intl,mbstring,mysql,xml,cli}
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Database"
DB_NAME=2fauth_db
DB_USER=2fauth

View File

@ -35,10 +35,11 @@ $STD apt-get install -y \
libavcodec-dev \
libavutil-dev \
libavformat-dev \
mariadb-server \
default-jdk
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setup Apache Tomcat"
RELEASE=$(curl -fsSL https://dlcdn.apache.org/tomcat/tomcat-9/ | grep -oP '(?<=href=")v[^"/]+(?=/")' | sed 's/^v//' | sort -V | tail -n1)
mkdir -p /opt/apache-guacamole/tomcat9

View File

@ -16,7 +16,6 @@ update_os
msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \
unzip \
mariadb-server \
apache2 \
php8.2-{mbstring,gd,fpm,curl,intl,ldap,tidy,bz2,mysql,zip,xml} \
composer \
@ -24,6 +23,8 @@ $STD apt-get install -y \
make
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Database"
DB_NAME=bookstack
DB_USER=bookstack

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;"

View File

@ -21,10 +21,11 @@ $STD apt-get install -y \
apache2 \
libapache2-mod-php8.4 \
php8.4-{bcmath,cli,intl,curl,zip,gd,xml,mbstring,mysql} \
mariadb-server \
composer
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up database"
DB_NAME=firefly
DB_USER=firefly

View File

@ -16,10 +16,11 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
nginx \
mariadb-server \
ca-certificates
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Configuring Database"
DB_NAME=ghost
DB_USER=ghostuser

View File

@ -19,10 +19,11 @@ $STD apt-get install -y \
apache2 \
php8.2-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \
php-cas \
libapache2-mod-php \
mariadb-server
libapache2-mod-php
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up database"
DB_NAME=glpi_db
DB_USER=glpi

View File

@ -20,10 +20,11 @@ $STD apt-get install -y \
git \
expect \
composer \
mariadb-server \
lsb-release
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Adding PHP8.4 Repository"
$STD curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb

View File

@ -13,11 +13,12 @@ setting_up_container
network_check
update_os
msg_info "Installing MariaDB"
$STD apt-get install -y mariadb-server
install_mariadb
msg_info "Setup MariaDB"
sed -i 's/^# *\(port *=.*\)/\1/' /etc/mysql/my.cnf
sed -i 's/^bind-address/#bind-address/g' /etc/mysql/mariadb.conf.d/50-server.cnf
msg_ok "Installed MariaDB"
msg_ok "Setup MariaDB"
read -r -p "${TAB3}Would you like to add PhpMyAdmin? <y/N> " prompt
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then

View File

@ -15,13 +15,13 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
mariadb-server \
apache2 \
libapache2-mod-php \
php-{bcmath,curl,dom,gd,gmp,iconv,intl,json,mbstring,mysqli,opcache,pdo-mysql,redis,tokenizer,xml,zip} \
composer
msg_ok "Installed Dependencies"
install_mariadb
NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules
msg_info "Setting up MariaDB"

View File

@ -19,12 +19,12 @@ $STD apt-get install -y \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg2 \
mariadb-server \
nginx \
redis-server
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Adding PHP Repository"
$STD curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb

View File

@ -16,12 +16,12 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
lsb-release \
mariadb-server \
mariadb-client \
apache2 \
composer
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Adding PHP8.4 Repository"
$STD curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb

View File

@ -15,13 +15,14 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
mariadb-server \
apache2 \
libapache2-mod-php \
php8.2 php8.2-{fpm,curl,cli,mysql,gd,intl,imap,apcu,pspell,tidy,xmlrpc,mbstring,gmp,xml,ldap,common,snmp} \
php-pear
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up MariaDB"
DB_NAME=phpipam
DB_USER=phpipam

View File

@ -15,12 +15,12 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
gnupg2 \
mariadb-server \
redis \
nginx
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Adoptium Repository"
mkdir -p /etc/apt/keyrings
curl -fsSL "https://packages.adoptium.net/artifactory/api/gpg/key/public" | gpg --dearmor >/etc/apt/trusted.gpg.d/adoptium.gpg

View File

@ -15,12 +15,13 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
mariadb-server \
apache2 \
libapache2-mod-php \
php8.2-{pdo,mysql,mbstring,gettext,fileinfo,gd,xml,zip}
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up MariaDB"
DB_NAME=projectsend
DB_USER=projectsend

View File

@ -17,12 +17,12 @@ msg_info "Installing Dependencies"
$STD apt-get install -y \
lsb-release \
redis \
mariadb-server \
mariadb-client \
apache2 \
composer
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Adding PHP8.4 Repository"
$STD curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb

View File

@ -20,6 +20,7 @@ $STD apt-get install -y ca-certificates
msg_ok "Installed Dependencies"
NODE_VERSION="22" install_node_and_modules
install_mariadb
msg_info "Installing FFMPEG"
$STD apt-get install -y ffmpeg
@ -41,7 +42,6 @@ sqluser="root"
sqlpass="root"
echo "mariadb-server mariadb-server/root_password password $sqlpass" | debconf-set-selections
echo "mariadb-server mariadb-server/root_password_again password $sqlpass" | debconf-set-selections
$STD apt-get install -y mariadb-server
service mysql start
mysql -u "$sqluser" -p"$sqlpass" -e "source sql/user.sql" || true
msg_ok "Installed Database"

View File

@ -18,10 +18,11 @@ $STD apt-get install -y \
composer \
git \
nginx \
php8.2-{bcmath,common,ctype,curl,fileinfo,fpm,gd,iconv,intl,mbstring,mysql,soap,xml,xsl,zip,cli} \
mariadb-server
php8.2-{bcmath,common,ctype,curl,fileinfo,fpm,gd,iconv,intl,mbstring,mysql,soap,xml,xsl,zip,cli}
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up database"
DB_NAME=snipeit_db
DB_USER=snipeit

View File

@ -16,10 +16,11 @@ update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
libapache2-mod-php \
mariadb-server \
php8.2-{curl,mbstring,mysql,xml,zip,gd}
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Database"
DB_NAME=wavelog
DB_USER=waveloguser

View File

@ -17,10 +17,11 @@ msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \
apache2 \
php8.2-{bcmath,common,cli,curl,fpm,gd,snmp,imap,mbstring,mysql,xml,zip} \
libapache2-mod-php \
mariadb-server
libapache2-mod-php
msg_ok "Installed Dependencies"
install_mariadb
msg_info "Setting up Database"
DB_NAME=wordpress_db
DB_USER=wordpress