forked from jellicoe/EVERNODE_WITHDRAW
-
Notifications
You must be signed in to change notification settings - Fork 5
/
update.sh
39 lines (29 loc) · 739 Bytes
/
update.sh
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
37
38
39
#!/bin/bash
# in order to update the script to the last version without losing your configuration,
# first go in evernode_monitor folder:
#
# cd evernode_monitor
#
# and then give execute permission to the script:
#
# chmod +x update.sh
#
# now you can execute the script:
#
# sudo ./update.sh
echo "move to parent folder"
cd ..
echo "backup .env file"
cp evernode_monitor/.env .env
echo "remove evernode_monitor folder"
rm evernode_monitor -r -f
echo "clone the github repo"
git clone https://github.com/genesis-one-seven/evernode_monitor/
echo "restore .env file"
cp .env evernode_monitor/.env
echo "delete backup .env file"
rm .env
echo "go back to script folder"
cd evernode_monitor
echo "install dependencies"
npm install