mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
commit
07114d1b27
3 changed files with 16 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Backup your server on a host server using Borg.",
|
"en": "Backup your server on a host server using Borg.",
|
||||||
"fr": "Sauvegardez votre serveur sur un serveur distant avec 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",
|
"url": "https://borgbackup.readthedocs.io",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -206,6 +206,15 @@ ynh_debian_release () {
|
||||||
lsb_release --codename --short
|
lsb_release --codename --short
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_buster () {
|
||||||
|
if [ "$(ynh_debian_release)" == "buster" ]
|
||||||
|
then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
is_stretch () {
|
is_stretch () {
|
||||||
if [ "$(ynh_debian_release)" == "stretch" ]
|
if [ "$(ynh_debian_release)" == "stretch" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -57,10 +57,14 @@ if grep "borg.timer" /etc/yunohost/services.yml > /dev/null ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace backports with pip
|
# 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
|
rm -f /etc/apt/sources.list.d/$app-stretch-backports.list
|
||||||
|
ynh_secure_remove /opt/borg-env
|
||||||
install_borg_with_pip
|
install_borg_with_pip
|
||||||
|
touch /opt/borg-env/buster
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue