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:
CanbiZ
2025-10-15 22:29:48 +02:00
committed by GitHub
parent fbf4bf34aa
commit 341f87045c
130 changed files with 374 additions and 281 deletions

View File

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