2024-05-11 11:12:46 +02:00
|
|
|
if [ $IP2L = "Yes" ]; then
|
|
|
|
msg_info "Setting up IP2Location Download Client for ${APP}"
|
2024-07-06 15:44:23 +02:00
|
|
|
cmd_exec apt install -y libwww-perl &>>$INSTALLLOG
|
|
|
|
cmd_exec wget -N https://www.ip2location.com/downloads/ip2location-downloader-linux.zip -O $MSTEMPDIR/ip2location-downloader-linux.zip &>>$INSTALLLOG
|
|
|
|
cmd_exec rm -rf $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
|
|
|
cmd_exec mkdir -p $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
|
|
|
cmd_exec pushd $MSTEMPDIR/ip2location-downloader-linux &>>$INSTALLLOG
|
|
|
|
cmd_exec unzip ../ip2location-downloader-linux.zip &>>$INSTALLLOG
|
|
|
|
cmd_exec cp download.pl ${MYSTIC_DIR}/ip2location
|
|
|
|
cmd_exec chmod +x ${MYSTIC_DIR}/ip2location
|
|
|
|
cmd_exec cp readme.txt ${MYSTIC_DIR}/docs/ip2location_README.txt
|
|
|
|
cmd_exec popd &>>$INSTALLLOG
|
2024-05-11 11:12:46 +02:00
|
|
|
msg_ok "Setting up IP2Location Download Client for ${APP}"
|
|
|
|
fi
|