1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

Merge pull request #97 from YunoHost-Apps/testing

#96: Add back ARM support
This commit is contained in:
yalh76 2022-04-06 08:24:05 +02:00 committed by GitHub
commit 5efa7349a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 9 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Crypto-currency software to operate Ğ1 libre currency Crypto-currency software to operate Ğ1 libre currency
**Shipped version:** 1.8.1~ynh1 **Shipped version:** 1.8.1~ynh2

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Nœud qui permet de participer à lécriture de blocs Nœud qui permet de participer à lécriture de blocs
**Version incluse :** 1.8.1~ynh1 **Version incluse :** 1.8.1~ynh2

7
conf/armhf.src Normal file
View file

@ -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

View file

@ -6,7 +6,7 @@
"en": "Crypto-currency software to operate Ğ1 libre currency", "en": "Crypto-currency software to operate Ğ1 libre currency",
"fr": "Nœud qui permet de participer à lécriture de blocs" "fr": "Nœud qui permet de participer à lécriture de blocs"
}, },
"version": "1.8.1~ynh1", "version": "1.8.1~ynh2",
"url": "https://duniter.org", "url": "https://duniter.org",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"upstream": { "upstream": {

View file

@ -28,6 +28,7 @@ path_url="/"
admin=$YNH_APP_ARG_ADMIN admin=$YNH_APP_ARG_ADMIN
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
architecture=$YNH_ARCH
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # 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)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=app ynh_setup_source --dest_dir=$tempdir --source_id=$architecture
ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb
#================================================= #=================================================
# CREATE DATA DIRECTORY # CREATE DATA DIRECTORY

View file

@ -31,6 +31,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path) path_url=$(ynh_app_setting_get --app=$app --key=path)
datadir=$(ynh_app_setting_get --app=$app --key=datadir) datadir=$(ynh_app_setting_get --app=$app --key=datadir)
port=$(ynh_app_setting_get --app=$app --key=port) port=$(ynh_app_setting_get --app=$app --key=port)
architecture=$YNH_ARCH
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS
@ -71,8 +72,8 @@ ynh_script_progression --message="Building Duniter.. (this will take some time a
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=app ynh_setup_source --dest_dir=$tempdir --source_id=$architecture
ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb
#================================================= #=================================================
# ADD A CONFIG FILE # ADD A CONFIG FILE

View file

@ -21,6 +21,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
admin=$(ynh_app_setting_get --app=$app --key=admin) admin=$(ynh_app_setting_get --app=$app --key=admin)
datadir=$(ynh_app_setting_get --app=$app --key=datadir) datadir=$(ynh_app_setting_get --app=$app --key=datadir)
port=$(ynh_app_setting_get --app=$app --key=port) port=$(ynh_app_setting_get --app=$app --key=port)
architecture=$YNH_ARCH
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
@ -92,8 +93,8 @@ dpkg -r duniter
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=app ynh_setup_source --dest_dir=$tempdir --source_id=$architecture
ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.1-linux-x64.deb ynh_exec_warn_less dpkg -i $tempdir/duniter-server-v1.8.*-linux-*.deb
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE