-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path13_update_defi_scripts.sh
More file actions
executable file
·36 lines (32 loc) · 1.02 KB
/
13_update_defi_scripts.sh
File metadata and controls
executable file
·36 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
if [ -z ${DEFI_HOME+x} ]; then
echo ""
echo ""
echo "***************************************************************************"
echo "* Your DEFI_HOME is not set!"
echo "* Execute menu '10 Set DeFi Home'. After logging out & in again, the"
echo "* DEFI_HOME variable should be set."
echo "* This can be checked in the DeFi Node main menu (desktop shortcut). See"
echo "* first menu entry (should be marked red)."
echo "***************************************************************************"
echo ""
else
if [ -d /home/pi/.temp ]; then
rm -r /home/pi/.temp
fi
mkdir /home/pi/.temp
cd /home/pi/.temp
git clone http://github.com/definode/definode
cd definode
cp -p -r ./* $DEFI_HOME
cd $DEFI_HOME
sudo chown -R pi ./*
cd /home/pi
sudo rm -r .temp
fi
echo ""
echo ""
echo "***************************************************************************"
echo "* All DeFi scripts has been updated from the GitHub."
echo "***************************************************************************"
echo""