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

Fix upgrade from

This commit is contained in:
Maniack Crudelis 2018-01-04 19:28:09 +01:00
parent 6685880b42
commit 9ab6ff9c6d
3 changed files with 9 additions and 3 deletions

View file

@ -11,7 +11,7 @@
setup_private=1
setup_public=1
upgrade=1
upgrade=1 from_commit=a8a843c80846eced71edb4f62f4b2981578751e2
upgrade=1 from_commit=a1211123350ae50675d4f37074d2953939e55dff
backup_restore=1
multi_instance=0
incorrect_path=1
@ -34,6 +34,6 @@
Email=
Notification=down
;;; Upgrade options
; commit=a8a843c80846eced71edb4f62f4b2981578751e2
name=5 Sep 2017 a8a843c80846eced71edb4f62f4b2981578751e2
; commit=a1211123350ae50675d4f37074d2953939e55dff
name=21 Dec 2017 a1211123350ae50675d4f37074d2953939e55dff
manifest_arg=domain=DOMAIN&path=PATH&is_public=1&

View file

@ -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)

View file

@ -35,6 +35,7 @@ fi
ynh_apt purge jenkins
ynh_remove_app_dependencies
ynh_secure_remove "/var/lib/jenkins"
#=================================================
# REMOVE THE NGINX CONFIGURATION