mirror of
https://github.com/YunoHost-Apps/searxng_ynh.git
synced 2024-09-03 20:26:00 +02:00
Fux move to ynh autoupdater
This commit is contained in:
parent
2b35ec96fe
commit
f3ada8be24
4 changed files with 13 additions and 8 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue