diff --git a/scripts/install b/scripts/install index ed3ea90..e2ce56b 100644 --- a/scripts/install +++ b/scripts/install @@ -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 \ diff --git a/scripts/upgrade b/scripts/upgrade index fa60bb3..14e0117 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================