Eh gotta do the fail2ban thing first because the avahi part 'returns' in some case later

This commit is contained in:
Alexandre Aubin 2019-08-11 22:25:54 +02:00 committed by GitHub
parent ec06974a37
commit 8d2974230c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -425,6 +425,19 @@ EOF
function workarounds_because_sysadmin_sucks() {
# ######################## #
# Workarounds for fail2ban #
# ######################## #
# We need to create auth.log in case it does not exists, because in some situation,
# this file does not exists, fail2ban will miserably fail to start because
# the default fail2ban jail include the sshd jail ... >.>
touch /var/log/auth.log
# ######################## #
# Workarounds for avahi #
# ######################## #
# When attempting several installation of Yunohost on the same host
# with a light VM system like LXC
# we hit a bug with avahi-daemon postinstallation
@ -461,15 +474,7 @@ function workarounds_because_sysadmin_sucks() {
--home /var/run/avahi-daemon --no-create-home \
--gecos "Avahi mDNS daemon" --group avahi \
--uid $avahi_id
# ######################## #
# Workarounds for fail2ban #
# ######################## #
# We need to create auth.log in case it does not exists, because in some situation,
# this file does not exists, fail2ban will miserably fail to start because
# the default fail2ban jail include the sshd jail ... >.>
touch /var/log/auth.log
}
function install_yunohost_packages() {