1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Use stretch backports instead of jessie's

This commit is contained in:
Jean-Baptiste Holcroft 2018-06-23 23:13:56 +02:00
parent 227c72ffa1
commit 3d10632f6c
2 changed files with 7 additions and 1 deletions

View file

@ -71,7 +71,7 @@ ynh_app_setting_set "$app" port "$port"
#=================================================
# add backports (required to install ffmpeg)
echo "deb http://httpredir.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
echo "deb http://httpredir.debian.org/debian stretch-backports main" | tee /etc/apt/sources.list.d/stretch-backports.list
ynh_package_update
ynh_install_app_dependencies build-essential curl ffmpeg \

View file

@ -35,6 +35,12 @@ if [ -z "$redis_db" ]; then
ynh_app_setting_set "$app" redis_db "$redis_db"
fi
# Make sure we use stretch backports and not jessie's
if [ ! -f /etc/apt/sources.list.d/stretch-backports.list ]; then
echo "deb http://httpredir.debian.org/debian stretch-backports main" | tee /etc/apt/sources.list.d/stretch-backports.list
ynh_secure_remove /etc/apt/sources.list.d/jessie-backports.list
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================