Update mysql-install.sh

tweak
This commit is contained in:
tteckster 2024-10-09 09:24:53 -04:00 committed by GitHub
parent 741f38fe2f
commit e9ec4c4f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -20,9 +20,7 @@ $STD apt-get install -y \
sudo \ sudo \
lsb-release \ lsb-release \
curl \ curl \
gnupg \ gnupg \
apt-transport-https \
make \
mc mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@ -32,7 +30,6 @@ echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/de
$STD apt-get update $STD apt-get update
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
$STD apt-get install -y \ $STD apt-get install -y \
mysql-common \
mysql-community-client \ mysql-community-client \
mysql-community-server mysql-community-server
msg_ok "Installed MySQL" msg_ok "Installed MySQL"
@ -46,7 +43,7 @@ msg_ok "MySQL Server configured"
read -r -p "Would you like to add PhpMyAdmin? <y/N> " prompt read -r -p "Would you like to add PhpMyAdmin? <y/N> " prompt
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
msg_info "Adding phpMyAdmin" msg_info "Installing phpMyAdmin"
$STD apt-get install -y \ $STD apt-get install -y \
apache2 \ apache2 \
php \ php \
@ -66,7 +63,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
chmod 660 /var/www/html/phpMyAdmin/config.inc.php chmod 660 /var/www/html/phpMyAdmin/config.inc.php
chown -R www-data:www-data /var/www/html/phpMyAdmin chown -R www-data:www-data /var/www/html/phpMyAdmin
systemctl restart apache2 systemctl restart apache2
msg_ok "Added phpMyAdmin" msg_ok "Installed phpMyAdmin"
fi fi
msg_info "Start Service" msg_info "Start Service"