get going with tron
This commit is contained in:
@@ -9,7 +9,8 @@ while IFS= read -r line; do
|
|||||||
blacklist+=("$line")
|
blacklist+=("$line")
|
||||||
done < "$BASEPATH/path-blacklist.txt"
|
done < "$BASEPATH/path-blacklist.txt"
|
||||||
|
|
||||||
pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
|
#pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
|
||||||
|
pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=PathPrefix).*\"" | cut -d'`' -f2-2)
|
||||||
|
|
||||||
for path in $pathlist; do
|
for path in $pathlist; do
|
||||||
include=true
|
include=true
|
||||||
|
|||||||
1
tron.yml
1
tron.yml
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
tron-fullnode:
|
tron-fullnode:
|
||||||
image: tronprotocol/java-tron:GreatVoyage-v4.7.7
|
image: tronprotocol/java-tron:GreatVoyage-v4.7.7
|
||||||
|
user: root
|
||||||
stop_grace_period: 5m
|
stop_grace_period: 5m
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile: 1048576
|
nofile: 1048576
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ for part in "${parts[@]}"; do
|
|||||||
|
|
||||||
if $include; then
|
if $include; then
|
||||||
|
|
||||||
pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
|
#pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
|
||||||
|
pathlist=$(cat $BASEPATH/$part | grep -oP "(?<=PathPrefix).*\"" | cut -d'`' -f2-2)
|
||||||
|
|
||||||
for path in $pathlist; do
|
for path in $pathlist; do
|
||||||
path_include=true
|
path_include=true
|
||||||
|
|||||||
Reference in New Issue
Block a user