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

Fux move to ynh autoupdater
Some checks failed
Create master promotion pull request / masterPromotion (push) Waiting to run
YunoHost apps package linter / test (push) Has been cancelled

This commit is contained in:
Sylvain 2024-06-11 21:23:30 +02:00
parent 2b35ec96fe
commit f3ada8be24
4 changed files with 13 additions and 8 deletions

View file

@ -18,7 +18,7 @@ userdoc = "https://docs.searxng.org/user/"
code = "https://github.com/searxng/searxng"
[integration]
yunohost = ">= 11.1.9"
yunohost = ">= 11.2.14.1"
architectures = "all"
multi_instance = false
ldap = "not_relevant"

View file

@ -16,7 +16,12 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir/searxng-src"
repo_fullpath=$(ynh_read_manifest --manifest_key="upstream.code")
commit_sha=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | xargs basename | tr -d"." -f1)
ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src"
pushd "$install_dir/searxng-src"
ynh_exec_fully_quiet git checkout "$commit_sha"
popd
ynh_script_progression --message="Installing SearXNG..." --weight=2

View file

@ -49,7 +49,12 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
ynh_secure_remove --file="$install_dir/searxng-src"
ynh_setup_source --dest_dir="$install_dir/searxng-src"
repo_fullpath=$(ynh_read_manifest --manifest_key="upstream.code")
commit_sha=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | xargs basename | tr -d"." -f1)
ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src"
pushd "$install_dir/searxng-src"
ynh_exec_fully_quiet git checkout "$commit_sha"
popd
ynh_secure_remove --file="$install_dir/searxng-pyenv"
python3 -m venv --system-site-packages "$install_dir/searxng-pyenv"

View file

@ -15,8 +15,3 @@ test_format = 1.0
# -------------------------------
# Commits to test upgrade from
# -------------------------------
test_upgrade_from.9de9cc90.name = "2023.09.17.22.15.57~ynh1 / packaging v1"
test_upgrade_from.9de9cc90.args.domain = "domain.tld"
test_upgrade_from.9de9cc90.args.path = "/path"
test_upgrade_from.9de9cc90.args.is_public = 1
test_upgrade_from.9de9cc90.args.admin = "john"