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:
parent
3ac49da244
commit
3d3228ddac
2 changed files with 18 additions and 1 deletions
|
@ -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>
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue