diff --git a/scripts/backup b/scripts/backup index 19fd4b5..7c32620 100755 --- a/scripts/backup +++ b/scripts/backup @@ -56,4 +56,4 @@ ynh_backup --src_path "/var/log/uwsgi/$app" # 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)." diff --git a/scripts/change_url b/scripts/change_url index 01b2a53..fb74ad1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -50,7 +50,7 @@ fi #================================================= # 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 @@ -114,4 +114,4 @@ ynh_systemd_action --service_name=nginx --action=reload # 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 diff --git a/scripts/install b/scripts/install index acb3c7b..a593ea4 100644 --- a/scripts/install +++ b/scripts/install @@ -61,10 +61,10 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." +ynh_script_progression --message="Configuring NGINX web server..." path_no_root=${path_url%/} -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config "path_no_root" #================================================= @@ -129,7 +129,7 @@ ynh_add_uwsgi_service # 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" #================================================= @@ -137,7 +137,7 @@ yunohost service add uwsgi --log "/var/log/uwsgi/app/$app.log" #================================================= 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" #================================================= @@ -164,4 +164,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression --message="Installation of Searx completed" --last diff --git a/scripts/remove b/scripts/remove index eaae73a..5aa7e90 100644 --- a/scripts/remove +++ b/scripts/remove @@ -82,4 +82,4 @@ ynh_system_user_delete --username=$app # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" --last +ynh_script_progression --message="Removal of Searx completed" --last diff --git a/scripts/restore b/scripts/restore index 35b4eda..09cd664 100755 --- a/scripts/restore +++ b/scripts/restore @@ -76,7 +76,7 @@ ynh_system_user_create --username=$app # RESTORE USER RIGHTS #================================================= -chown $app: --recursive "$final_path" +chown -R $app: "$final_path" #================================================= # RESTORE THE UWSGI CONFIG