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

Fix move to ynh autoupdater

This commit is contained in:
Sylvain 2024-06-12 07:26:21 +02:00
parent f3ada8be24
commit f810e40ce9
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message="Setting up source files..." --weight=1
repo_fullpath=$(ynh_read_manifest --manifest_key="upstream.code") 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) commit_sha=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | xargs basename --suffix=".tar.gz")
ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src" ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src"
pushd "$install_dir/searxng-src" pushd "$install_dir/searxng-src"
ynh_exec_fully_quiet git checkout "$commit_sha" ynh_exec_fully_quiet git checkout "$commit_sha"

View file

@ -50,7 +50,7 @@ then
ynh_secure_remove --file="$install_dir/searxng-src" ynh_secure_remove --file="$install_dir/searxng-src"
repo_fullpath=$(ynh_read_manifest --manifest_key="upstream.code") 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) commit_sha=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | xargs basename --suffix=".tar.gz")
ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src" ynh_exec_fully_quiet git clone -n "$repo_fullpath" "$install_dir/searxng-src"
pushd "$install_dir/searxng-src" pushd "$install_dir/searxng-src"
ynh_exec_fully_quiet git checkout "$commit_sha" ynh_exec_fully_quiet git checkout "$commit_sha"