Removed the remaining use of python

This commit is contained in:
Geoff Bourne 2020-01-30 21:39:35 -06:00
parent c449a31b37
commit 9d67dceff3
2 changed files with 2 additions and 3 deletions

View File

@ -15,8 +15,7 @@ RUN apk add --no-cache -U \
mysql-client \
tzdata \
rsync \
nano \
python python-dev py2-pip
nano
HEALTHCHECK --start-period=1m CMD mc-monitor status --host localhost --port $SERVER_PORT

View File

@ -31,7 +31,7 @@ fi
echo "Checking for JSON files."
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
for j in $JSON_FILES; do
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
if [[ $(cat $j | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') == "" ]]; then
echo "Fixing JSON $j"
echo '[]' > $j
fi