-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_enginetwo.sh
More file actions
24 lines (23 loc) · 864 Bytes
/
install_enginetwo.sh
File metadata and controls
24 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
cd $HOME
git clone https://github.com/RaulBernal/enginetwo.git && cd enginetwo
# This is to link the SQLite file with Grafana volume
sudo chown -R 472:472 $HOME/enginetwo
sudo chmod -R 775 $HOME/enginetwo
sudo groupadd -g 472 grafanagroup
sudo useradd -u 472 -g 472 -m grafanauser
# End Grafana-permissions setup
echo
echo
echo "You can run the parser in a SCREEN session: $ screen -S Parser (Press CTRL + A + D to leave it running)"
echo
echo "$ cd enginetwo"
echo "Run the Parser:"
echo "$ sudo -u grafanauser /usr/local/go/bin/go run main.go"
echo
echo "Stop: press CTR + C"
echo
echo "If you stop it and you want to resume, edit main.go, and replace the starting block in the main() functions"
echo "$ sudo -u grafanauser nano main.go"
echo
echo "If you want delete the database and start from the scratch: sudo -u grafanauser rm data.sqlite3"