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

Remove backport usage

This commit is contained in:
Jean-Baptiste Holcroft 2018-06-28 22:50:04 +02:00
parent 0b26703bdd
commit 3f0f04c5a0
3 changed files with 4 additions and 10 deletions

View file

@ -8,7 +8,7 @@
"description": { "description": {
"en": "A modern, convivial and free music server" "en": "A modern, convivial and free music server"
}, },
"version": "0.15~ynh1", "version": "0.15~ynh2",
"url": "https://funkwhale.audio", "url": "https://funkwhale.audio",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"maintainer": { "maintainer": {

View file

@ -70,10 +70,6 @@ ynh_app_setting_set "$app" port "$port"
# INSTALL DEPENDENCIES # 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 \ ynh_install_app_dependencies build-essential curl ffmpeg \
libjpeg-dev libmagic-dev libpq-dev postgresql python3-dev python3-venv \ libjpeg-dev libmagic-dev libpq-dev postgresql python3-dev python3-venv \
redis-server \ redis-server \

View file

@ -35,11 +35,9 @@ if [ -z "$redis_db" ]; then
ynh_app_setting_set "$app" redis_db "$redis_db" ynh_app_setting_set "$app" redis_db "$redis_db"
fi fi
# Make sure we use stretch backports and not jessie's # We don't need backports anymore
if [ ! -f /etc/apt/sources.list.d/stretch-backports.list ]; then ynh_secure_remove /etc/apt/sources.list.d/stretch-backports.list
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
ynh_secure_remove /etc/apt/sources.list.d/jessie-backports.list
fi
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP