correct script and typos

This commit is contained in:
Mario Fetka 2023-01-08 12:48:38 +01:00
parent 8acc378903
commit 3c6db9a833
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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]