e2guardian/getut1.sh

12 lines
338 B
Bash
Raw Normal View History

#!/bin/bash
if ! command -v ftp >/dev/null; then
echo 'ftp is required for this script to work.'
2023-12-17 12:16:36 -05:00
exit 1
fi
if ! command -v tar >/dev/null; then
echo 'tar is required for this script to work.'
2023-12-17 12:16:36 -05:00
exit 1
fi
ftp ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz -o ut1/ut1.tar.gz
tar xzf ut1/ut1.tar.gz -C ut1/