mirror of
https://github.com/YunoHost-Apps/meilisearch_ynh.git
synced 2024-09-03 19:45:59 +02:00
debug
This commit is contained in:
parent
cf8f27d1fc
commit
89ebbd64fe
2 changed files with 13 additions and 16 deletions
|
@ -17,18 +17,3 @@ ynh_detect_arch() {
|
||||||
fi
|
fi
|
||||||
echo $architecture
|
echo $architecture
|
||||||
}
|
}
|
||||||
|
|
||||||
ynh_installation_mailisearch() {
|
|
||||||
local arch=$(ynh_detect_arch)
|
|
||||||
local url=""
|
|
||||||
if [[ $arch = "amd64" ]]
|
|
||||||
then
|
|
||||||
url="meilisearch-linux-amd64"
|
|
||||||
elif [ $arch = "armv8"]
|
|
||||||
url="meilisearch-linux-armv8"
|
|
||||||
else
|
|
||||||
ynh_die --message="Your OS Architecture is not supported"
|
|
||||||
fi
|
|
||||||
curl https://github.com/meilisearch/MeiliSearch/releases/download/$latest/mailisearch-linux-$arch -O mailisearch
|
|
||||||
mv mailisearch /usr/bin/mailisearch
|
|
||||||
}
|
|
||||||
|
|
|
@ -80,7 +80,19 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
ynh_script_progression --message="Installing mailisearch..." --time --weight=1
|
ynh_script_progression --message="Installing mailisearch..." --time --weight=1
|
||||||
|
|
||||||
ynh_installation_mailisearch
|
arch=$(ynh_detect_arch)
|
||||||
|
url=""
|
||||||
|
if [ $arch = "amd64" ]
|
||||||
|
then
|
||||||
|
url="meilisearch-linux-amd64"
|
||||||
|
elif [ $arch = "armv8"]
|
||||||
|
url="meilisearch-linux-armv8"
|
||||||
|
else
|
||||||
|
ynh_die --message="Your OS Architecture is not supported"
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl https://github.com/meilisearch/MeiliSearch/releases/download/$latest/mailisearch-linux-$arch -O mailisearch
|
||||||
|
mv mailisearch /usr/bin/mailisearch
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue