From e581138cbb3607aa540fd0182a2e1c7a7cf1af68 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 15 Feb 2019 19:56:29 +0100 Subject: [PATCH] Restore ynh_panel What's the fuck !? "only comptable with non-root installation" ??? Why that !? --- scripts/install | 11 ----------- scripts/upgrade | 9 --------- 2 files changed, 20 deletions(-) diff --git a/scripts/install b/scripts/install index 295f144..3c732ef 100644 --- a/scripts/install +++ b/scripts/install @@ -146,17 +146,6 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex # SETUP SSOWAT #================================================= -if [[ "$path_url" == "/" ]] -then - # ynh panel is only comptable with non-root installation - ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf" - - ynh_store_file_checksum "$finalnginxconf" -else - ynh_replace_string "^#sub_path_only" "" "$finalnginxconf" - ynh_store_file_checksum "$finalnginxconf" -fi - # Make app public or private if [ $is_public -eq 1 ] then diff --git a/scripts/upgrade b/scripts/upgrade index 984b507..f8be406 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -170,17 +170,8 @@ chmod -R 700 $final_path/sessions # SETUP FAIL2BAN #================================================= -if [[ "$path_url" == "/" ]] -then - # ynh panel is only comptable with non-root installation - ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf" ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 - ynh_store_file_checksum "$finalnginxconf" -else - ynh_replace_string "^#sub_path_only" "" "$finalnginxconf" - ynh_store_file_checksum "$finalnginxconf" -fi #================================================= # SETUP SSOWAT #=================================================