mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] install script: download and install duniter-v0.20.0aXX from GitHub releases for x64 and armv7l arch.
This commit is contained in:
parent
67a632a5d0
commit
0811df144e
1 changed files with 12 additions and 2 deletions
|
@ -40,8 +40,18 @@ sudo yunohost firewall allow TCP $port > /dev/null 2>&1
|
|||
sudo yunohost app setting $app port -v $port
|
||||
|
||||
# Install Duniter
|
||||
bash ../sources/install.sh
|
||||
source ~/.bashrc
|
||||
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
|
||||
else
|
||||
echo "$arch is not currently supported."
|
||||
exit;
|
||||
fi
|
||||
sudo dpkg -i duniter-v0.20.0a*-linux-*.deb
|
||||
#source ~/.bashrc
|
||||
|
||||
# Configure Duniter node
|
||||
$app init --autoconf
|
||||
|
|
Loading…
Add table
Reference in a new issue