add logging

This commit is contained in:
Mario Fetka
2024-07-06 15:44:23 +02:00
parent 34a6606065
commit 74d6291522
14 changed files with 209 additions and 208 deletions

View File

@@ -1,14 +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
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