mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
Bump L to N-Scripts to Debian 13 (Trixie) (#8368)
* Bump L to N-Scripts to Debian 13 (Trixie) * refactor * Add apt clean command to cleanup process * Add apt clean command to cleanup process --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
$STD apt install -y \
|
||||
lsb-release
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
@@ -30,13 +30,25 @@ fi
|
||||
msg_info "Installing MySQL"
|
||||
curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor -o /usr/share/keyrings/mysql.gpg
|
||||
if [ "$(lsb_release -si)" = "Debian" ]; then
|
||||
echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/debian $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list
|
||||
cat <<EOF >/etc/apt/sources.list.d/mysql.sources
|
||||
Types: deb
|
||||
URIs: http://repo.mysql.com/apt/debian
|
||||
Suites: $(lsb_release -sc)
|
||||
Components: ${RELEASE_REPO}
|
||||
Signed-By: /usr/share/keyrings/mysql.gpg
|
||||
EOF
|
||||
else
|
||||
echo "deb [signed-by=/usr/share/keyrings/mysql.gpg] http://repo.mysql.com/apt/ubuntu $(lsb_release -sc) ${RELEASE_REPO}" >/etc/apt/sources.list.d/mysql.list
|
||||
cat <<EOF >/etc/apt/sources.list.d/mysql.sources
|
||||
Types: deb
|
||||
URIs: http://repo.mysql.com/apt/ubuntu
|
||||
Suites: $(lsb_release -sc)
|
||||
Components: ${RELEASE_REPO}
|
||||
Signed-By: /usr/share/keyrings/mysql.gpg
|
||||
EOF
|
||||
fi
|
||||
$STD apt-get update
|
||||
$STD apt update
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
$STD apt-get install -y \
|
||||
$STD apt install -y \
|
||||
mysql-community-client \
|
||||
mysql-community-server
|
||||
msg_ok "Installed MySQL"
|
||||
@@ -52,7 +64,7 @@ msg_ok "MySQL Server configured"
|
||||
read -r -p "${TAB3}Would you like to add PhpMyAdmin? <y/N> " prompt
|
||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||
msg_info "Installing phpMyAdmin"
|
||||
$STD apt-get install -y \
|
||||
$STD apt install -y \
|
||||
apache2 \
|
||||
php \
|
||||
php-mysqli \
|
||||
@@ -82,6 +94,7 @@ motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning up"
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
$STD apt -y autoremove
|
||||
$STD apt -y autoclean
|
||||
$STD apt -y clean
|
||||
msg_ok "Cleaned"
|
||||
|
||||
Reference in New Issue
Block a user