1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Indentation and variable usage

This commit is contained in:
Maniack Crudelis 2019-05-05 13:28:19 +02:00 committed by GitHub
parent d492a2452e
commit 6d99fa20ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,14 +115,14 @@ ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE craue_config_s
# Set-up fail2ban # Set-up fail2ban
# Create the log file is not already existing # Create the log file is not already existing
if [ ! -f "/var/www/$app/var/logs/prod.log" ]; if [ ! -f "$final_path/var/logs/prod.log" ]
then then
mkdir -p "/var/www/$app/var/logs/" mkdir -p "$final_path/var/logs/"
touch "/var/www/$app/var/logs/prod.log" touch "$final_path/var/logs/prod.log"
chown $app: "/var/www/$app/var/logs/prod.log" chown $app: "$final_path/var/logs/prod.log"
fi fi
# Add fail2ban config # Add fail2ban config
ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP "<HOST>"' --max_retry=5 # same as install config ynh_add_fail2ban_config --logpath="$final_path/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP "<HOST>"' --max_retry=5 # same as install config
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION