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..."