1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Merge pull request #47 from YunoHost-Apps/testing

Buster upgrade
This commit is contained in:
Alexandre Aubin 2020-09-03 19:00:48 +02:00 committed by GitHub
commit 07114d1b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View file

@ -6,7 +6,7 @@
"en": "Backup your server on a host server using Borg.",
"fr": "Sauvegardez votre serveur sur un serveur distant avec Borg."
},
"version": "1.1.10~ynh5",
"version": "1.1.10~ynh6",
"url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause",
"maintainer": {

View file

@ -206,6 +206,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

View file

@ -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
#=================================================