add more mariadb migrations

This commit is contained in:
CanbiZ 2025-05-27 14:32:01 +02:00
parent 3563354516
commit 23a20ec5f5
5 changed files with 58 additions and 55 deletions

View File

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

View File

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

View File

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

View File

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

View File

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