diff --git a/conf/app.src b/conf/amd64.src similarity index 100% rename from conf/app.src rename to conf/amd64.src diff --git a/conf/armhf.src b/conf/armhf.src new file mode 100644 index 0000000..8a7c795 --- /dev/null +++ b/conf/armhf.src @@ -0,0 +1,7 @@ +SOURCE_URL=https://git.duniter.org/nodes/typescript/duniter/uploads/f272bf9239e8f97f15c01aafe53b6798/duniter-server-v1.8.0-linux-armv7l.deb +SOURCE_SUM=5f769088aea5ee1feb3cb5bd58c4c36e2de897137646536bdcf511a6970990dc +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=deb +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME=duniter-server-v1.8.0-linux-armv7l.deb +SOURCE_EXTRACT=false diff --git a/scripts/install b/scripts/install index 51e4f0c..a27e12d 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,7 @@ path_url="/" admin=$YNH_APP_ARG_ADMIN app=$YNH_APP_INSTANCE_NAME +architecture=$YNH_ARCH #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS @@ -80,8 +81,8 @@ ynh_script_progression --message="Building Duniter.. (this will take some time a tempdir="$(mktemp -d)" -ynh_setup_source --dest_dir=$tempdir --source_id=app -ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb +ynh_setup_source --dest_dir=$tempdir --source_id=$architecture +ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb #================================================= # CREATE DATA DIRECTORY diff --git a/scripts/restore b/scripts/restore index f21b47e..08a140f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -31,6 +31,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) datadir=$(ynh_app_setting_get --app=$app --key=datadir) port=$(ynh_app_setting_get --app=$app --key=port) +architecture=$YNH_ARCH #================================================= # STANDARD RESTORATION STEPS @@ -71,8 +72,8 @@ ynh_script_progression --message="Building Duniter.. (this will take some time a tempdir="$(mktemp -d)" -ynh_setup_source --dest_dir=$tempdir --source_id=app -ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb +ynh_setup_source --dest_dir=$tempdir --source_id=$architecture +ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb #================================================= # ADD A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index 7517018..e12f122 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,6 +21,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) admin=$(ynh_app_setting_get --app=$app --key=admin) datadir=$(ynh_app_setting_get --app=$app --key=datadir) port=$(ynh_app_setting_get --app=$app --key=port) +architecture=$YNH_ARCH #================================================= # CHECK VERSION @@ -92,8 +93,8 @@ dpkg -r duniter tempdir="$(mktemp -d)" -ynh_setup_source --dest_dir=$tempdir --source_id=app -ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb +ynh_setup_source --dest_dir=$tempdir --source_id=$architecture +ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb #================================================= # UPDATE A CONFIG FILE