From 1c8f019b2035e3e0e5ac173a7b40f373f54162cc Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 4 Jan 2018 19:36:35 +0100 Subject: [PATCH] Update to 1.2 --- README.md | 2 +- README_fr.md | 2 +- conf/app.src | 4 ++-- manifest.json | 2 +- scripts/_common.sh | 5 +++++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5902259..9e118e2 100644 --- a/README.md +++ b/README.md @@ -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. -**Shipped version:** 1.1 +**Shipped version:** 1.2 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 40eab02..8ad4619 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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. -**Version embarquée:** 1.1 +**Version embarquée:** 1.2 ## Captures d'écran diff --git a/conf/app.src b/conf/app.src index 28d8e9c..eab9667 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/maniackcrudelis/ssh_chroot/archive/v1.1.tar.gz -SOURCE_SUM=fb6fef96a59a22cff69bface2c2b5baa +SOURCE_URL=https://github.com/maniackcrudelis/ssh_chroot/archive/v1.2.tar.gz +SOURCE_SUM=64216c872af56ad39535202137338bb5 SOURCE_SUM_PRG=md5sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 7f74139..0a04b7d 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "ssh chroot directories with quotas disk.", "fr": "Dossier ssh en chroot avec gestion de quotas." }, - "version": "1.1~ynh1", + "version": "1.2~ynh1", "url": "https://github.com/maniackcrudelis/ssh_chroot", "license": "GPL-3.0", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 522fde5..746baa4 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -454,6 +454,11 @@ EOF ynh_store_file_checksum "$finalfail2banfilterconf" 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)