using HA trading-calendar and config service
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
usage() {
|
||||
echo -n "Usage: ${0}"
|
||||
echo -n " [-c <config (dflt: apps/cvtt_eqt_alpaca)>]"
|
||||
echo -n " [-s <config_serverice (dflt: http://cloud23.cvtt.vpn:6789)>]"
|
||||
echo -n " [-s <config_serverice (dflt: http://cloud16.cvtt.vpn:6789)>]"
|
||||
echo -n " [-N <name (dflt: ALPACA-SNDBX)>]"
|
||||
echo
|
||||
exit 1
|
||||
@@ -23,7 +23,7 @@ export PYTHONPATH=${RootDir}
|
||||
StatusChannel=Status-CVTT
|
||||
AlertChannel=Alerts-CVTT
|
||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||
ConfigService=http://cloud23.cvtt.vpn:6789
|
||||
ConfigService=http://cloud16.cvtt.vpn:6789
|
||||
Config=apps/cvtt_eqt_alpaca
|
||||
Name="ALPACA-SNDBX"
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ RootDir="${HOME}/prod"
|
||||
|
||||
AlertChannel=Alerts-CVTT
|
||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||
ConfigUrl=http://cloud23.cvtt.vpn:6789/admin/cvtt_hosts
|
||||
ConfigUrl=http://cloud16.cvtt.vpn:6789/admin/cvtt_hosts
|
||||
|
||||
HOSTS_CONFIG=$(curl -s ${ConfigUrl} | ${HOME}/bin/hjson -j)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ RootDir="${HOME}/prod"
|
||||
|
||||
AlertChannel=Alerts-CVTT
|
||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||
ConfigUrl=http://cloud23.cvtt.vpn:6789/admin/cvtt_services
|
||||
ConfigUrl=http://cloud16.cvtt.vpn:6789/admin/cvtt_services
|
||||
|
||||
SERVICES_CONFIG=$(curl -s ${ConfigUrl} | ${HOME}/bin/hjson -j)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ get_user_hosts() {
|
||||
local User=${1}
|
||||
local Domain=${2}
|
||||
|
||||
Cmd="curl -s http://cloud23.cvtt.vpn:6789/admin/cvtt_hosts"
|
||||
Cmd="curl -s http://cloud16.cvtt.vpn:6789/admin/cvtt_hosts"
|
||||
Cmd+=" | ${HOME}/bin/hjson -j"
|
||||
Cmd+=" | jq -r"
|
||||
Cmd+=" --arg domain \"${Domain}\""
|
||||
|
||||
Reference in New Issue
Block a user