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

[fix] Support 4.2

This commit is contained in:
ljf 2021-05-07 19:24:28 +02:00
parent 9e0434b289
commit b4a88ccbf0
4 changed files with 12 additions and 4 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.16~ynh4",
"version": "1.1.16~ynh5",
"url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause",
"maintainer": {
@ -15,7 +15,7 @@
"url": "https://reflexlibre.net"
},
"requirements": {
"yunohost": ">= 4.1.0"
"yunohost": ">= 4.2.3"
},
"multi_instance": true,
"services": [],

View file

@ -54,7 +54,7 @@ install_borg_with_pip
#=================================================
ynh_script_progression --message="Creating SSH user used by Borg..."
adduser $ssh_user --quiet --gecos ",,," --shell /bin/bash --disabled-password
ynh_system_user_create --username=$ssh_user --home_dir=/home/$ssh_user --use_shell --groups ssh.app
#=================================================
# AUTORIZE SSH FOR THIS USER

View file

@ -37,8 +37,9 @@ install_borg_with_pip
#=================================================
# CREATE SSH USER USED BY BORG
#=================================================
ynh_script_progression --message="Creating SSH user used by Borg..."
adduser $ssh_user --quiet --gecos ",,," --shell /bin/bash --disabled-password
ynh_system_user_create --username=$ssh_user --home_dir=/home/$ssh_user --use_shell --groups ssh.app
#=================================================
# AUTORIZE SSH FOR THIS USER

View file

@ -77,6 +77,13 @@ if [ ! -f "/opt/borg-env/$(ynh_get_debian_release)" ] ; then
ynh_secure_remove /opt/borg-env
fi
#=================================================
# CREATE SSH USER USED BY BORG
#=================================================
ynh_script_progression --message="Creating SSH user used by Borg..."
ynh_system_user_create --username=$ssh_user --home_dir=/home/$ssh_user --use_shell --groups ssh.app
#=================================================
# UPGRADE DEPENDENCIES
#=================================================