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

Merge pull request #38 from YunoHost-Apps/testing

Testing
This commit is contained in:
ljf (zamentur) 2021-05-09 16:12:16 +02:00 committed by GitHub
commit ed2637a61c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 5 deletions

View file

@ -6,7 +6,7 @@
"en": "Offer backup storage to a friend.", "en": "Offer backup storage to a friend.",
"fr": "Offrez un espace de stockage à un⋅e ami⋅e." "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", "url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"maintainer": { "maintainer": {
@ -15,7 +15,7 @@
"url": "https://reflexlibre.net" "url": "https://reflexlibre.net"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.0" "yunohost": ">= 4.2.3"
}, },
"multi_instance": true, "multi_instance": true,
"services": [], "services": [],

View file

@ -54,7 +54,7 @@ install_borg_with_pip
#================================================= #=================================================
ynh_script_progression --message="Creating 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 # AUTORIZE SSH FOR THIS USER

View file

@ -34,7 +34,7 @@ fi
#================================================= #=================================================
# We keep files cause we don't know what the user want to do about # We keep files cause we don't know what the user want to do about
# backups stored in the home directory # backups stored in the home directory
userdel $ssh_user ynh_system_user_delete --username=$ssh_user
#================================================= #=================================================
# REMOVE CRON FILES # REMOVE CRON FILES

View file

@ -37,8 +37,9 @@ install_borg_with_pip
#================================================= #=================================================
# CREATE SSH USER USED BY BORG # 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 # 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 ynh_secure_remove /opt/borg-env
fi 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 # UPGRADE DEPENDENCIES
#================================================= #=================================================