e2guardian/getut1.sh

10 lines
322 B
Bash
Executable file

#!/bin/bash
if ! command -v ftp >/dev/null; then
echo 'ftp is required for this script to work.'
fi
if ! command -v tar >/dev/null; then
echo 'tar is required for this script to work.'
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/