Fix for Debian 8

This commit is contained in:
earnolmartin 2018-05-23 19:53:26 -06:00
parent 2882684436
commit 3a23bcb831
2 changed files with 4 additions and 4 deletions

View file

@ -141,8 +141,8 @@ function apacheUseFPM(){
# Harder to use PPAs from Ubuntu on Debian, but still possible :)
if [ "$distro" == "debian" ] && [ "$yrelease" -eq "8" ]; then
sed -i "s/cosmic/trusty/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"
sed -i "s/cosmic/trusty/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list.save"
sed -i "s/jessie/trusty/g" "/etc/apt/sources.list.d/ondrej-apache2-jessie.list"
sed -i "s/jessie/trusty/g" "/etc/apt/sources.list.d/ondrej-apache2-jessie.list.save"
fi
if [ "$distro" == "debian" ] && [ "$yrelease" -eq "9" ]; then
sed -i "s/cosmic/xenial/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"

View file

@ -835,8 +835,8 @@ function apacheUseFPM(){
# Harder to use PPAs from Ubuntu on Debian, but still possible :)
if [ "$distro" == "debian" ] && [ "$yrelease" -eq "8" ]; then
sed -i "s/cosmic/trusty/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"
sed -i "s/cosmic/trusty/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list.save"
sed -i "s/jessie/trusty/g" "/etc/apt/sources.list.d/ondrej-apache2-jessie.list"
sed -i "s/jessie/trusty/g" "/etc/apt/sources.list.d/ondrej-apache2-jessie.list.save"
fi
if [ "$distro" == "debian" ] && [ "$yrelease" -eq "9" ]; then
sed -i "s/cosmic/xenial/g" "/etc/apt/sources.list.d/ondrej-ubuntu-apache2-cosmic.list"