Commit b9d0c98a authored by Paul Cammish's avatar Paul Cammish
Browse files

Enable backport repo in Debian Buster and configure for phpmyadmin install

parent bd64ec55
......@@ -71,6 +71,20 @@ if [ "x$(which debconf-set-selections)" = "x" ]; then
if [ "$(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 buster-backports main" > /etc/apt/sources.list.d/enable_backports.list
echo ' ok'
if [ ! -f /etc/apt/preferences.d/sympl-phpmyadmin ]; then
echo -n 'Enabling install of phpmyadmin from backports...'
echo -e "Package: phpmyadmin\nPin: release a=buster-backports\nPin-Priority: 900" > /etc/apt/preferences.d/sympl-phpmyadmin
echo -e "Package: php-twig\nPin: release a=buster-backports\nPin-Priority: 900" >> /etc/apt/preferences.d/sympl-phpmyadmin
echo ' ok'
echo "Installing Sympl from '$version' repository."
echo "Setting defaults..."
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