forked from Enriko82/BTB-Install-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Oracle_start
90 lines (83 loc) · 3.22 KB
/
Oracle_start
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
# This is an installation script for installing Binance Trade Bot on Oracle Free tier cloud.
#
# Copyright 2021 Enriko82
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
#
# Instructions how to install:
# Create a new instance in Oracle cloud
# Copy this script into the Paste Cloud-init script screen
#
# If you like this automated install starter script. Please go to:
# https://www.buymeacoffee.com/Enriko82
#
#
## Version updates
# 1.0 14-06-2021
#
# More information about the Binance Trade Bot can be found here
# https://github.com/edeng23/binance-trade-bot
# If you like the Binance trade Bot. Please go to here to support:
# https://www.buymeacoffee.com/edeng
#
# More information about the Binance Trade Bot Manager Telegram can be found here
# https://github.com/lorcalhost/BTB-manager-telegram
# If you like the Binance Trade Bot Manager Telegram. Please go to here to support:
# https://www.buymeacoffee.com/lorcalhost
#
# End instructions
########################################################################################################################################################
########################################################################################################################################################
# Start User input
##############################
# Set here in which folder you would like the Bot to be installed:
# By default the bot will be installed in the subfolder Binance1
BinanceFolder=Binance1
##############################
# Fill in here your API keys of Binance
api_key=HereyourAPIkey
api_secret_key=Hereyourapisecretkey
##############################
# Update here if you are US (tld=us) or non us (tld=com)
tld=com
##############################
# Select here your bridge coin you would like to use (USDT taken as example)
bridge=USDT
##############################
# Fill in your telegram details here
# On Telegram, talk to @botfather and create a bot.
# It will send you your Telegram bot token.
TOKEN=123456:abcdefgh
# On Telegram, talk to @userinfobot.
# It will send you some information among which your Telegram chat_id.
CHAT_ID=1234567
# End user Input
########################################################################################################################################################
export BinanceFolder
export api_key
export api_secret_key
export tld
export bridge
export TOKEN
export CHAT_ID
cd /home/opc
sudo yum install git -y
git init
git clone https://github.com/Enriko82/BTB-Install-script.git
sudo chmod +x "BTB-Install-script/called_scripts/Oracle_Starter.sh"
runuser --session-command -u opc ". ./BTB-Install-script/called_scripts/Oracle_Starter.sh"
echo "all done"