get python ver
This commit is contained in:
0
ip2location/config-v5.sh
Normal file
0
ip2location/config-v5.sh
Normal file
8
ip2location/info-v5.sh
Normal file
8
ip2location/info-v5.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
if [ $IP2L = "Yes" ]; then
|
||||
echo "IP2Location Downloader" >> ${DBP_INFO}
|
||||
echo "With the downloader the IP2Location data of mystic can be updated" >> ${DBP_INFO}
|
||||
echo "you will have to activate it in the ${MYSTIC_DIR}/dbp.ini" >> ${DBP_INFO}
|
||||
echo "there you have to add your ip2location API key and set the database type" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||
fi
|
||||
14
ip2location/install-v5.sh
Normal file
14
ip2location/install-v5.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
if [ $IP2L = "Yes" ]; then
|
||||
msg_info "Setting up IP2Location Download Client for ${APP}"
|
||||
apt install -y libwww-perl &>/dev/null
|
||||
wget -N https://www.ip2location.com/downloads/ip2location-downloader-linux.zip -O $MSTEMPDIR/ip2location-downloader-linux.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
pushd $MSTEMPDIR/ip2location-downloader-linux &>/dev/null
|
||||
unzip ../ip2location-downloader-linux.zip &>/dev/null
|
||||
cp download.pl ${MYSTIC_DIR}/ip2location
|
||||
chmod +x ${MYSTIC_DIR}/ip2location
|
||||
cp readme.txt ${MYSTIC_DIR}/docs/ip2location_README.txt
|
||||
popd &>/dev/null
|
||||
msg_ok "Setting up IP2Location Download Client for ${APP}"
|
||||
fi
|
||||
8
ip2location/prompt-v5.sh
Normal file
8
ip2location/prompt-v5.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
IP2L=$(whiptail --title "Add The IP2Location Download Client to Mystic" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
|
||||
"Yes" "Add IP2Location Download Client" ON \
|
||||
"No" "Don't Add IP2Location Download Client" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Add DbP Script: ${BGN}$IP2L${CL}"
|
||||
fi
|
||||
@@ -1,3 +1,3 @@
|
||||
for file in $(ls *-v3.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||
for file in $(ls *-v4.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v4\.sh/v5\.sh/')"
|
||||
done
|
||||
Reference in New Issue
Block a user