„scripts/start-server.sh“ ändern

This commit is contained in:
2021-09-10 14:26:22 +02:00
parent ff94d7cc35
commit d692ec150e

View File

@@ -19,6 +19,14 @@ if [ "${CUSTOM_RES_H}" -le 767 ]; then
echo "---Height to low must be a minimal of 768 pixels, correcting to 768...---"
CUSTOM_RES_H=768
fi
if [ -z ${GPODDER_DOWNLOAD_DIR} ]; then
echo "---The variable 'GPODDER_DOWNLOAD_DIR' can't be empty, putting container into sleep mode!---"
sleep infinity
elif [ ! -d ${GPODDER_DOWNLOAD_DIR} ]; then
mkdir -p ${GPODDER_DOWNLOAD_DIR}
fi
echo "---Checking for old logfiles---"
rm -rf /tmp/.X0*
rm -rf /tmp/.X11*