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 done
shift $((OPTIND-1)) shift $((OPTIND-1))
if [ -z "${f}" ]; then if [ -z "${INIFILE}" ]; then
usage usage
fi fi
@ -74,10 +74,10 @@ if [ $NODE_ENABLE = "true" ]; then
fi fi
if [ $IP2L_ENABLE = "true" ]; then if [ $IP2L_ENABLE = "true" ]; then
${MYSTIC_DIR}/ip2location -package ${IP2L_TOKEN} -token ${IP2L_TOKEN} -output ${TMP_DIR}/IP2LOCATION.ZIP ${MYSTIC_DIR}/ip2location -package ${IP2L_DB} -token ${IP2L_TOKEN} -output ${TMP_DIR}/IP2LOCATION.ZIP
unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.TXT -d ${MYSTIC_DIR}/data unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.TXT -d ${TMP_DIR}
unzip -o ${TMP_DIR}/IP2LOCATION.ZIP -x *.BIN -d ${MYSTIC_DIR}/docs 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} rm -rf ${TMP_DIR}
fi fi

View File

@ -10,11 +10,15 @@ BanUnbanIP=false
BaseDir=@MYSTIC_DIR@ BaseDir=@MYSTIC_DIR@
; Logfielformat not inplemented at the moment ist hardcoded to YYYYMMDD
LogFileFormat=YYYY-MM-DD
[Ip2Location] [Ip2Location]
; Pleas Create an Free Account at https://lite.ip2location.com/ and fill in the Token ; 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. ; 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 Token=PleasePutTokenHere
Database=DB1LITE Database=DB1LITEBIN
[MisLog] [MisLog]