diff --git a/conf/arm.src b/conf/arm.src new file mode 100644 index 0000000..d20f42e --- /dev/null +++ b/conf/arm.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://github.com/syncthing/syncthing/releases/download/v1.1.3/syncthing-linux-arm-v1.1.3.tar.gz +SOURCE_SUM=3589C9F308973B7D7600FD4BBA69652DFA0F752A28D05280940537E8242C8CE3 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.gz +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index 0a74227..4fedcf6 100644 --- a/scripts/install +++ b/scripts/install @@ -75,7 +75,11 @@ ynh_print_info --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src +if [ -n "$(uname -m | grep arm)" ] ; then +ynh_setup_source --dest_dir="$final_path" --source_id="arm" +else ynh_setup_source --dest_dir="$final_path" +fi #================================================= # NGINX CONFIGURATION