mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[fix] #96: Add back ARM support
This commit is contained in:
parent
5c3fa20c36
commit
3d858c73ae
5 changed files with 16 additions and 6 deletions
7
conf/armhf.src
Normal file
7
conf/armhf.src
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue