Commit 7e1ccb5f authored by Paul Cammish's avatar Paul Cammish
Browse files

Only enable backports on Debian Buster

parent 6fc84a3e
......@@ -42,7 +42,7 @@ fi
clear
echo
echo "-----------------------------------------------------------------------"
echo " Sympl Installer v0.8"
echo " Sympl Installer v0.9"
echo "-----------------------------------------------------------------------"
echo
echo "This script will help you install Sympl on a Debian Linux or Raspberry"
......@@ -75,7 +75,9 @@ if [ "x$(which debconf-set-selections)" = "x" ]; then
fi
fi
if [ "$(lsb_release -c -s)" == "buster" ]; then
# If we're running Debian Buster, then add the backports repo so we can get to phpMyAdmin there
# We don't need to do this with Raspbian/Raspberry Pi OS as it's in the normal repo there
if [ "$(lsb_release -i -s)" == "Debian" ] && [ "$(lsb_release -c -s)" == "buster" ]; then
if [ $( cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sed 's|#.*||' | grep -c '^deb .* buster-backports' ) -lt 1 ]; then
echo -n 'Enabling Debian buster-backports repo for phpmyadmin...'
echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/enable_backports.list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment