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

cleaning up

This commit is contained in:
ericgaspar 2020-09-19 16:47:18 +02:00
parent c311fa0b56
commit b6da14f1c6
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 10 additions and 10 deletions

View file

@ -56,4 +56,4 @@ ynh_backup --src_path "/var/log/uwsgi/$app"
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." ynh_print_info --message="Backup script completed for Searx. (YunoHost will then actually copy those files to the archive)."

View file

@ -50,7 +50,7 @@ fi
#================================================= #=================================================
# STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Stopping searx..." --weight=10 ynh_script_progression --message="Stopping Searx..." --weight=10
ynh_systemd_action --service_name=uwsgi --action=stop ynh_systemd_action --service_name=uwsgi --action=stop
@ -114,4 +114,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Change of URL completed for $app" --last ynh_script_progression --message="Change of URL completed for Searx" --last

View file

@ -61,10 +61,10 @@ ynh_install_app_dependencies $pkg_dependencies
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Configuring nginx web server..." ynh_script_progression --message="Configuring NGINX web server..."
path_no_root=${path_url%/} path_no_root=${path_url%/}
# Create a dedicated nginx config # Create a dedicated NGINX config
ynh_add_nginx_config "path_no_root" ynh_add_nginx_config "path_no_root"
#================================================= #=================================================
@ -129,7 +129,7 @@ ynh_add_uwsgi_service
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL
#================================================= #=================================================
# Ajoute le service au monitoring de Yunohost. # Ajoute le service au monitoring de YunoHost.
yunohost service add uwsgi --log "/var/log/uwsgi/app/$app.log" yunohost service add uwsgi --log "/var/log/uwsgi/app/$app.log"
#================================================= #=================================================
@ -137,7 +137,7 @@ yunohost service add uwsgi --log "/var/log/uwsgi/app/$app.log"
#================================================= #=================================================
ynh_script_progression --message="Starting Searx..." --weight=4 ynh_script_progression --message="Starting Searx..." --weight=4
# Wait for searx to be fully started # Wait for Searx to be fully started
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" 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"
#================================================= #=================================================
@ -164,4 +164,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Installation of $app completed" --last ynh_script_progression --message="Installation of Searx completed" --last

View file

@ -82,4 +82,4 @@ ynh_system_user_delete --username=$app
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Removal of $app completed" --last ynh_script_progression --message="Removal of Searx completed" --last

View file

@ -76,7 +76,7 @@ ynh_system_user_create --username=$app
# RESTORE USER RIGHTS # RESTORE USER RIGHTS
#================================================= #=================================================
chown $app: --recursive "$final_path" chown -R $app: "$final_path"
#================================================= #=================================================
# RESTORE THE UWSGI CONFIG # RESTORE THE UWSGI CONFIG