mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Restore ynh_panel
What's the fuck !? "only comptable with non-root installation" ??? Why that !?
This commit is contained in:
parent
6926d8e18a
commit
e581138cbb
2 changed files with 0 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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: <HOST>,.*$" --max_retry=5
|
||||
|
||||
ynh_store_file_checksum "$finalnginxconf"
|
||||
else
|
||||
ynh_replace_string "^#sub_path_only" "" "$finalnginxconf"
|
||||
ynh_store_file_checksum "$finalnginxconf"
|
||||
fi
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue