get python ver also on python2

This commit is contained in:
Mario Fetka
2024-05-11 11:39:51 +02:00
parent 92535047da
commit 1eed5a6b1f
49 changed files with 652 additions and 18 deletions

0
ip2location/config-v6.sh Normal file
View File

8
ip2location/info-v6.sh Normal file
View 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-v6.sh Normal file
View 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-v6.sh Normal file
View 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

View File

@@ -1,3 +1,3 @@
for file in $(ls *-v4.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v4\.sh/v5\.sh/')"
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done