mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-15 04:54:55 +00:00
Removed the remaining use of python
This commit is contained in:
+1
-2
@@ -15,8 +15,7 @@ RUN apk add --no-cache -U \
|
|||||||
mysql-client \
|
mysql-client \
|
||||||
tzdata \
|
tzdata \
|
||||||
rsync \
|
rsync \
|
||||||
nano \
|
nano
|
||||||
python python-dev py2-pip
|
|
||||||
|
|
||||||
HEALTHCHECK --start-period=1m CMD mc-monitor status --host localhost --port $SERVER_PORT
|
HEALTHCHECK --start-period=1m CMD mc-monitor status --host localhost --port $SERVER_PORT
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
echo "Checking for JSON files."
|
echo "Checking for JSON files."
|
||||||
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
|
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
|
||||||
for j in $JSON_FILES; do
|
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 "Fixing JSON $j"
|
||||||
echo '[]' > $j
|
echo '[]' > $j
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user