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