From d81f8ac683fef5faeda129021e46a27210092ab5 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 19 Jun 2024 01:20:12 +0200 Subject: [PATCH] fix arch detection --- scripts/restore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 70cb023..36a8854 100755 --- a/scripts/restore +++ b/scripts/restore @@ -69,7 +69,9 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # compare if the system arch is different from the binary arch # if so, download the correct binary -if [ "$YNH_ARCH" != "$(file "$install_dir"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ] +arch="$YNH_ARCH" +if [ "$arch" == "amd64" ]; then arch="x86-64"; fi +if [ "$arch" != "$(file "$install_dir"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ] then ynh_script_progression --message="Migrating binary architecture..."