From 3c6db9a833ddc99b896bdfa95b5e2a4e360affc1 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 8 Jan 2023 12:48:38 +0100 Subject: [PATCH] correct script and typos --- dbp/cron.sh | 8 ++++---- dbp/dbp.ini | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dbp/cron.sh b/dbp/cron.sh index 3d09905..91de738 100755 --- a/dbp/cron.sh +++ b/dbp/cron.sh @@ -13,7 +13,7 @@ while getopts ":f:" o; do done shift $((OPTIND-1)) -if [ -z "${f}" ]; then +if [ -z "${INIFILE}" ]; then usage fi @@ -74,10 +74,10 @@ if [ $NODE_ENABLE = "true" ]; then fi if [ $IP2L_ENABLE = "true" ]; then - ${MYSTIC_DIR}/ip2location -package ${IP2L_TOKEN} -token ${IP2L_TOKEN} -output ${TMP_DIR}/IP2LOCATION.ZIP - unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.TXT -d ${MYSTIC_DIR}/data + ${MYSTIC_DIR}/ip2location -package ${IP2L_DB} -token ${IP2L_TOKEN} -output ${TMP_DIR}/IP2LOCATION.ZIP + unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.TXT -d ${TMP_DIR} unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.BIN -d ${MYSTIC_DIR}/docs - mv ${MYSTIC_DIR}/data/IP2LOCATION-*.BIN ${MYSTIC_DIR}/data/iplocation.bin + mv ${TMP_DIR}/IP2LOCATION-*.BIN ${MYSTIC_DIR}/data/iplocation.bin rm -rf ${TMP_DIR} fi diff --git a/dbp/dbp.ini b/dbp/dbp.ini index 58b68f9..c7004cb 100644 --- a/dbp/dbp.ini +++ b/dbp/dbp.ini @@ -10,11 +10,15 @@ BanUnbanIP=false BaseDir=@MYSTIC_DIR@ +; Logfielformat not inplemented at the moment ist hardcoded to YYYYMMDD +LogFileFormat=YYYY-MM-DD + [Ip2Location] ; Pleas Create an Free Account at https://lite.ip2location.com/ and fill in the Token ; if you Buy the the Service you can CHange the Database to reflect your purchase. +; But chose the BIN Veriosn for the download Token=PleasePutTokenHere -Database=DB1LITE +Database=DB1LITEBIN [MisLog]