1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

Revert "Fix"

This reverts commit bb3ec87b64.
This commit is contained in:
ericgaspar 2021-06-26 12:33:40 +02:00
parent bb3ec87b64
commit 83068cd214
5 changed files with 7 additions and 7 deletions

View file

@ -118,7 +118,7 @@ ynh_script_progression --message="Reconfiguring Searx..." --weight=2
#=================================================
ynh_script_progression --message="Starting Searx..." --weight=2
ynh_systemd_action --service_name=uwsgi-app@.service --action=restart --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
ynh_systemd_action --service_name=uwsgi-app@$app.service --action=restart --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
#=================================================
# RELOAD NGINX

View file

@ -115,7 +115,7 @@ chown -R $app: $final_path
#=================================================
ynh_script_progression --message="Configuring uWSGI for Searx..." --weight=2
ynh_add_uwsgi_service
ynh_add_uwsgi_service 2>/dev/null
#=================================================
# CHECK SEARX STARTING
@ -123,7 +123,7 @@ ynh_add_uwsgi_service
ynh_script_progression --message="Starting Searx..." --weight=4
# Wait for Searx to be fully started
ynh_systemd_action --service_name=uwsgi-app@.service --action=start --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
ynh_systemd_action --service_name=uwsgi-app@$app.service --action=start --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
#=================================================
# GENERIC FINALISATION

View file

@ -27,7 +27,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=2
# Remove the uwsgi configuration
ynh_systemd_action --service_name "uwsgi-app@.service" --action stop
ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop
ynh_remove_uwsgi_service
#=================================================

View file

@ -86,7 +86,7 @@ ynh_restore_file --origin_path="/etc/uwsgi/apps-available/$app.ini"
ynh_restore_file --origin_path "/var/log/uwsgi/$app"
chown $app:root /var/log/uwsgi/$app
ynh_check_global_uwsgi_config
systemctl enable "uwsgi-app@.service" --quiet
systemctl enable "uwsgi-app@$app.service" --quiet
#=================================================
# GENERIC FINALISATION
@ -103,7 +103,7 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Starting Searx..." --weight=4
# Wait for searx to be fully started
ynh_systemd_action --service_name=uwsgi-app@.service --action=start --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
ynh_systemd_action --service_name=uwsgi-app@$app.service --action=start --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
#=================================================
# END OF SCRIPT

View file

@ -152,7 +152,7 @@ ynh_add_uwsgi_service
ynh_script_progression --message="Restarting Searx..." --weight=3
# Wait for searx to be fully started
ynh_systemd_action --service_name=uwsgi-app@.service --action=restart --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
ynh_systemd_action --service_name=uwsgi-app@$app.service --action=restart --line_match="spawned uWSGI master process" --log_path="/var/log/uwsgi/$app/$app.log"
#=================================================
# RELOAD NGINX