mystic/ip2location/install-v7.sh
2024-07-06 15:44:23 +02:00

15 lines
819 B
Bash

if [ $IP2L = "Yes" ]; then
msg_info "Setting up IP2Location Download Client for ${APP}"
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
msg_ok "Setting up IP2Location Download Client for ${APP}"
fi