mirror of
https://github.com/YunoHost-Apps/tandoor_ynh.git
synced 2024-09-03 20:35:56 +02:00
removed fail2ban
This commit is contained in:
parent
ed60182841
commit
b11ec4ef03
1 changed files with 4 additions and 9 deletions
|
@ -134,20 +134,23 @@ chown $app:$app "$final_path/.env"
|
|||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setting up Tandoor dependencies..." --weight=1
|
||||
ynh_script_progression --message="Setting up Tandoor venv..." --weight=1
|
||||
|
||||
ynh_exec_as $app python3 -m venv "$final_path/venv"
|
||||
|
||||
ynh_script_progression --message="Installing dependencies via pip..." --weight=2
|
||||
pushd "$final_path"
|
||||
ynh_exec_as $app "$final_path/venv/bin/pip3" install -r requirements.txt
|
||||
popd
|
||||
|
||||
ynh_script_progression --message="Building frontend..." --weight=5
|
||||
pushd "$final_path/vue"
|
||||
ynh_use_nodejs
|
||||
yarn install
|
||||
yarn build
|
||||
popd
|
||||
|
||||
ynh_script_progression --message="Running migrations and generatic static files..." --weight=3
|
||||
pushd "$final_path"
|
||||
ynh_exec_as $app "$final_path/venv/bin/python3" manage.py migrate
|
||||
ynh_psql_connect_as $db_user $db_pwd <<< "ALTER USER $app WITH NOSUPERUSER;"
|
||||
|
@ -290,14 +293,6 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight
|
|||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# SETUP FAIL2BAN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring Fail2Ban..." --time --weight=1
|
||||
|
||||
# Create a dedicated Fail2Ban config
|
||||
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue