1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/meilisearch_ynh.git synced 2024-09-03 19:45:59 +02:00

little fix for architecture

This commit is contained in:
frju365 2020-05-15 20:42:59 +02:00
parent 3ac49da244
commit 3d3228ddac
No known key found for this signature in database
GPG key ID: C892BE847FF5635A
2 changed files with 18 additions and 1 deletions

View file

@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" /> <mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>
</project> </project>

View file

@ -2,8 +2,24 @@
latest="v0.10.1" latest="v0.10.1"
ynh_detect_arch(){
local architecture
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep arm)" ]; then
architecture="armv8"
elif [ -n "$(uname -m | grep 64)" ]; then
architecture="amd64"
elif [ -n "$(uname -m | grep 86)" ]; then
architecture="i386"
elif [ -n "$(uname -m | grep arm)" ]; then
architecture="arm"
else
architecture="unknown"
fi
echo $architecture
}
installation_mailisearch() { installation_mailisearch() {
arch=$() arch=$(ynh_detect_arch)
url="" url=""
if [[ $arch = "amd64" ]] if [[ $arch = "amd64" ]]
then then