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

Update to 1.2

This commit is contained in:
Maniack Crudelis 2018-01-04 19:36:35 +01:00
parent 3436d6f8c5
commit 1c8f019b20
5 changed files with 10 additions and 5 deletions

View file

@ -18,7 +18,7 @@ In addition to the chroot, the user has a limited space available.
So, you can provide to a distant user a limited part of your hard disk to let him put his backup, without any risk for your own server. So, you can provide to a distant user a limited part of your hard disk to let him put his backup, without any risk for your own server.
**Shipped version:** 1.1 **Shipped version:** 1.2
## Screenshots ## Screenshots

View file

@ -20,7 +20,7 @@ En plus du chroot, l'utilisateur dispose d'un espace limité.
Ainsi, vous pouvez fournir à un utilisateur distant une partie limitée de votre disque dur pour lui permettre de mettre sa sauvegarde, sans aucun risque pour votre propre serveur. Ainsi, vous pouvez fournir à un utilisateur distant une partie limitée de votre disque dur pour lui permettre de mettre sa sauvegarde, sans aucun risque pour votre propre serveur.
**Version embarquée:** 1.1 **Version embarquée:** 1.2
## Captures d'écran ## Captures d'écran

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/maniackcrudelis/ssh_chroot/archive/v1.1.tar.gz SOURCE_URL=https://github.com/maniackcrudelis/ssh_chroot/archive/v1.2.tar.gz
SOURCE_SUM=fb6fef96a59a22cff69bface2c2b5baa SOURCE_SUM=64216c872af56ad39535202137338bb5
SOURCE_SUM_PRG=md5sum SOURCE_SUM_PRG=md5sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "ssh chroot directories with quotas disk.", "en": "ssh chroot directories with quotas disk.",
"fr": "Dossier ssh en chroot avec gestion de quotas." "fr": "Dossier ssh en chroot avec gestion de quotas."
}, },
"version": "1.1~ynh1", "version": "1.2~ynh1",
"url": "https://github.com/maniackcrudelis/ssh_chroot", "url": "https://github.com/maniackcrudelis/ssh_chroot",
"license": "GPL-3.0", "license": "GPL-3.0",
"maintainer": { "maintainer": {

View file

@ -454,6 +454,11 @@ EOF
ynh_store_file_checksum "$finalfail2banfilterconf" ynh_store_file_checksum "$finalfail2banfilterconf"
sudo systemctl restart fail2ban sudo systemctl restart fail2ban
if local fail2ban_error="$(tail -n50 /var/log/fail2ban.log | grep "WARNING Command.*$app.*addfailregex")"
then
echo "[ERR] Fail2ban fail to load the jail for $app" >&2
echo "WARNING${fail2ban_error#*WARNING}" >&2
fi
} }
# Remove the dedicated fail2ban config (jail and filter conf files) # Remove the dedicated fail2ban config (jail and filter conf files)