Commit 8c32b242 authored by Paul Cammish's avatar Paul Cammish
Browse files

Update .gitlab-ci.yml, autotest/enable_backports files

parent 53a44d26
......@@ -101,9 +101,7 @@ Clean Install:
script:
- chmod -x $( which gitlab-runner )
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
- echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/enable_backports.list
- 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
- autotest/enable_backports
- git describe --all
- apt-get -qq update; apt-get -qq -y upgrade
- cp -r repo/ /
......
#!/bin/bash
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 http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/enable_backports.list
echo ' ok'
fi
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'
fi
fi
apt-get -qq -y update
\ No newline at end of file
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