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:
parent
227c72ffa1
commit
3d10632f6c
2 changed files with 7 additions and 1 deletions
|
@ -71,7 +71,7 @@ ynh_app_setting_set "$app" port "$port"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# add backports (required to install ffmpeg)
|
# 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_package_update
|
||||||
|
|
||||||
ynh_install_app_dependencies build-essential curl ffmpeg \
|
ynh_install_app_dependencies build-essential curl ffmpeg \
|
||||||
|
|
|
@ -35,6 +35,12 @@ 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
|
||||||
|
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
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue