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

[fix] Could delete a non system user

This commit is contained in:
ljf 2020-02-27 17:58:45 +01:00
parent f2f1166cbe
commit 6d18b6bfd4
2 changed files with 5 additions and 7 deletions

View file

@ -6,7 +6,7 @@
"en": "Offer backup storage to a friend.",
"fr": "Offrez un espace de stockage à un⋅e ami⋅e."
},
"version": "1.1.10~ynh2",
"version": "1.1.10~ynh3",
"url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause",
"maintainer": {
@ -15,7 +15,7 @@
"url": "https://reflexlibre.net"
},
"requirements": {
"yunohost": ">= 3.1"
"yunohost": ">= 3.6"
},
"multi_instance": true,
"services": [],

View file

@ -34,9 +34,7 @@ ynh_clean_setup () {
ynh_abort_if_errors
# Replace backports with pip
if is_stretch; then
rm -f /etc/apt/sources.list.d/$app-stretch-backports.list
rm -f /etc/apt/sources.list.d/$app-stretch-backports.list
install_borg_with_pip
fi
rm -f /etc/yunohost/hooks.d/backup/17-data_home
install_borg_with_pip
ynh_secure_remove /etc/yunohost/hooks.d/backup/17-data_home