mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] enhance way of retrieving debian packages from GitHub
This commit is contained in:
parent
5296475ddf
commit
8af377ec38
1 changed files with 8 additions and 6 deletions
|
@ -12,6 +12,7 @@ sync_port=$5
|
|||
salt=$6
|
||||
password=$7
|
||||
cpu=`bc -l <<< "scale=2; $8/100"`
|
||||
version="v0.20.0a84"
|
||||
|
||||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
@ -45,14 +46,15 @@ ynh_app_setting_set $app port $port
|
|||
cd /tmp
|
||||
arch=$(uname -m)
|
||||
if [ $arch == "x86_64" ]; then
|
||||
wget https://github.com/duniter/duniter/releases/download/v0.20.0a52/duniter-v0.20.0a52-linux-x64.deb
|
||||
elif [ $arch == "armv7l" ]; then
|
||||
wget https://github.com/duniter/duniter/releases/download/v0.20.0a45/duniter-v0.20.0a45-linux-armv7l.deb
|
||||
arch="x64"
|
||||
wget https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb
|
||||
#elif [ $arch == "armv7l" ]; then
|
||||
# wget https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb
|
||||
else
|
||||
echo "$arch is not currently supported."
|
||||
exit;
|
||||
ynh_die "$arch is not currently supported." 2
|
||||
fi
|
||||
sudo dpkg -i duniter-v0.20.0a*-linux-*.deb
|
||||
sudo dpkg -i duniter-$version-linux-$arch.deb
|
||||
#sudo rm -f /tmp/duniter-$version-linux-$arch.deb
|
||||
#source ~/.bashrc
|
||||
|
||||
# Configure Duniter node
|
||||
|
|
Loading…
Add table
Reference in a new issue