1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00
This commit is contained in:
Éric Gaspar 2023-12-02 23:10:09 +01:00
parent 4dc7154a4f
commit 91de023e7b
5 changed files with 6 additions and 15 deletions

View file

@ -21,8 +21,11 @@ code = "https://github.com/searx/searx"
yunohost = ">= 11.2" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = false multi_instance = false
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "50M"
ram.runtime = "50M" ram.runtime = "50M"
@ -55,4 +58,4 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packagess = "git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3 shellcheck" packagess = "git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel,zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck"

View file

@ -48,7 +48,7 @@ popd
ynh_script_progression --message="Configuring Searx..." --weight=2 ynh_script_progression --message="Configuring Searx..." --weight=2
secret_key=$(ynh_string_random) secret_key=$(ynh_string_random)
ynh_add_config --template="../conf/settings.yml" --destination="$install_dir/searx/settings.yml" ynh_add_config --template="settings.yml" --destination="$install_dir/searx/settings.yml"
#================================================= #=================================================
# SET PERMISSIONS ON SEARX DIRECTORY # SET PERMISSIONS ON SEARX DIRECTORY

View file

@ -20,11 +20,6 @@ ynh_script_progression --message="Stopping and removing the systemd service..."
ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop
ynh_remove_uwsgi_service ynh_remove_uwsgi_service
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=2
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config

View file

@ -46,13 +46,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=4
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"
#=================================================
# GENERIC FINALIZATION
#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading NGINX web server..." --weight=2
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload
#================================================= #=================================================

View file

@ -94,7 +94,7 @@ chown -R $app: "$install_dir"
# ynh_script_progression --message="Configuring Searx..." --weight=2 # ynh_script_progression --message="Configuring Searx..." --weight=2
# secret_key=$(ynh_string_random) # secret_key=$(ynh_string_random)
# ynh_add_config --template="../conf/settings.yml" --destination="$install_dir/searx/settings.yml" # ynh_add_config --template="settings.yml" --destination="$install_dir/searx/settings.yml"
#================================================= #=================================================
# CONFIGURE UWSGI FOR SEARX # CONFIGURE UWSGI FOR SEARX