From 3f0f04c5a09ac293baa5d75ac2b99fc1c7ffc8a9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Thu, 28 Jun 2018 22:50:04 +0200 Subject: [PATCH] Remove backport usage --- manifest.json | 2 +- scripts/install | 4 ---- scripts/upgrade | 8 +++----- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index 84f3688..4cf1095 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ "description": { "en": "A modern, convivial and free music server" }, - "version": "0.15~ynh1", + "version": "0.15~ynh2", "url": "https://funkwhale.audio", "license": "BSD-3-Clause", "maintainer": { diff --git a/scripts/install b/scripts/install index e2ce56b..0b6c80f 100644 --- a/scripts/install +++ b/scripts/install @@ -70,10 +70,6 @@ ynh_app_setting_set "$app" port "$port" # INSTALL DEPENDENCIES #================================================= -# add backports (required to install ffmpeg) -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 \ libjpeg-dev libmagic-dev libpq-dev postgresql python3-dev python3-venv \ redis-server \ diff --git a/scripts/upgrade b/scripts/upgrade index 14e0117..9d72bfd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,11 +35,9 @@ 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 +# We don't need backports anymore +ynh_secure_remove /etc/apt/sources.list.d/stretch-backports.list +ynh_secure_remove /etc/apt/sources.list.d/jessie-backports.list #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP