From cf8f27d1fc88f371a82d4c183c7ac81987d8e416 Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 15 May 2020 23:15:40 +0200 Subject: [PATCH] typo --- scripts/_common.sh | 8 ++++---- scripts/install | 3 ++- scripts/upgrade | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 0a50677..0e0275a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -2,7 +2,7 @@ latest="v0.10.1" -ynh_detect_arch(){ +ynh_detect_arch() { local architecture if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep arm)" ]; then architecture="armv8" @@ -18,9 +18,9 @@ ynh_detect_arch(){ echo $architecture } -installation_mailisearch(){ - arch=$(ynh_detect_arch) - url="" +ynh_installation_mailisearch() { + local arch=$(ynh_detect_arch) + local url="" if [[ $arch = "amd64" ]] then url="meilisearch-linux-amd64" diff --git a/scripts/install b/scripts/install index a4de4c6..da9e10c 100644 --- a/scripts/install +++ b/scripts/install @@ -79,7 +79,8 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing mailisearch..." --time --weight=1 -installation_mailisearch + +ynh_installation_mailisearch #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index feb2120..fbba530 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,7 +103,7 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading mailisearch..." --time --weight=1 -installation_mailisearch +ynh_installation_mailisearch #================================================= # CREATE DEDICATED USER