1
0
Fork 0
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:
navanchauhan 2022-08-06 17:57:01 -04:00
parent ed60182841
commit b11ec4ef03

View file

@ -134,20 +134,23 @@ chown $app:$app "$final_path/.env"
#================================================= #=================================================
# SPECIFIC SETUP # 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_exec_as $app python3 -m venv "$final_path/venv"
ynh_script_progression --message="Installing dependencies via pip..." --weight=2
pushd "$final_path" pushd "$final_path"
ynh_exec_as $app "$final_path/venv/bin/pip3" install -r requirements.txt ynh_exec_as $app "$final_path/venv/bin/pip3" install -r requirements.txt
popd popd
ynh_script_progression --message="Building frontend..." --weight=5
pushd "$final_path/vue" pushd "$final_path/vue"
ynh_use_nodejs ynh_use_nodejs
yarn install yarn install
yarn build yarn build
popd popd
ynh_script_progression --message="Running migrations and generatic static files..." --weight=3
pushd "$final_path" pushd "$final_path"
ynh_exec_as $app "$final_path/venv/bin/python3" manage.py migrate 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;" 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 # Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" 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 # SETUP SSOWAT
#================================================= #=================================================