mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 01:44:38 +00:00
merge MariaDB to tools.func Installer (#4753)
* merge MariaDB to tools.func Installer * add more mariadb migrations
This commit is contained in:
parent
5ccf8a7cd6
commit
ac2f0e66ae
20 changed files with 172 additions and 161 deletions
|
@ -15,11 +15,12 @@ update_os
|
|||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
libapache2-mod-php \
|
||||
mariadb-server \
|
||||
php8.2-{curl,mbstring,mysql,xml,zip,gd}
|
||||
libapache2-mod-php \
|
||||
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
|
||||
|
@ -28,10 +29,10 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;"
|
|||
$STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
|
||||
$STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
||||
{
|
||||
echo "Wavelog-Credentials"
|
||||
echo "Wavelog Database User: $DB_USER"
|
||||
echo "Wavelog Database Password: $DB_PASS"
|
||||
echo "Wavelog Database Name: $DB_NAME"
|
||||
echo "Wavelog-Credentials"
|
||||
echo "Wavelog Database User: $DB_USER"
|
||||
echo "Wavelog Database Password: $DB_PASS"
|
||||
echo "Wavelog Database Name: $DB_NAME"
|
||||
} >>~/wavelog.creds
|
||||
msg_ok "Set up database"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue