From 6f37e451dc51c6b1e751a6b4a6ea8a1a40c0d080 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 15 Mar 2022 22:50:47 +0100 Subject: [PATCH] "ynh_" removed to avoid ambiguity --- scripts/_common.sh | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 55dc9b2..b07e6c5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,7 +11,7 @@ pkg_dependencies="postgresql postgresql-contrib" # PERSONAL HELPERS #================================================= -ynh_detect_arch(){ +detect_arch(){ local architecture if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then architecture="arm64" diff --git a/scripts/install b/scripts/install index 5c68f6d..c50835a 100755 --- a/scripts/install +++ b/scripts/install @@ -141,7 +141,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ### `ynh_setup_source` use the file conf/app.src # ynh_detect_arch comes from _common.sh / personnal helpers -architecture=$ynh_detect_arch +architecture=$detect_arch # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id=$architecture diff --git a/scripts/upgrade b/scripts/upgrade index 6b06e3c..c27ba86 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,7 +84,7 @@ then ynh_script_progression --message="Upgrading source files..." # ynh_detect_arch comes from _common.sh / personnal helpers - architecture=$ynh_detect_arch + architecture=$detect_arch # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id=$architecture --keep="config.yaml"