mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
Merge branch 'testing' into update-to-v1.1.13
This commit is contained in:
commit
6cfb3d5e41
2 changed files with 15 additions and 2 deletions
|
@ -120,6 +120,15 @@ ynh_debian_release () {
|
|||
lsb_release --codename --short
|
||||
}
|
||||
|
||||
is_buster () {
|
||||
if [ "$(ynh_debian_release)" == "buster" ]
|
||||
then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_stretch () {
|
||||
if [ "$(ynh_debian_release)" == "stretch" ]
|
||||
then
|
||||
|
|
|
@ -57,10 +57,14 @@ if grep "borg.timer" /etc/yunohost/services.yml > /dev/null ; then
|
|||
fi
|
||||
|
||||
# Replace backports with pip
|
||||
if is_stretch; then
|
||||
if is_buster; then
|
||||
if [ ! -f /opt/borg-env/buster ] ; then
|
||||
rm -f /etc/apt/sources.list.d/$app-stretch-backports.list
|
||||
|
||||
ynh_secure_remove /opt/borg-env
|
||||
install_borg_with_pip
|
||||
touch /opt/borg-env/buster
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue