update_clamav-unofficial-sigs.sh: Set up the script so that it can resume if cloning the Git repository fails.
This commit is contained in:
@@ -678,8 +678,25 @@ if [[ -d "/tmp/clamav-unofficial-sigs" ]]; then
|
|||||||
fi
|
fi
|
||||||
git clone https://github.com/extremeshok/clamav-unofficial-sigs.git /tmp/clamav-unofficial-sigs > $log_file 2>&1
|
git clone https://github.com/extremeshok/clamav-unofficial-sigs.git /tmp/clamav-unofficial-sigs > $log_file 2>&1
|
||||||
if [[ "$?" -ne 0 ]] ; then
|
if [[ "$?" -ne 0 ]] ; then
|
||||||
installation_failed=true
|
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
echo ""
|
||||||
|
echo " Command was:"
|
||||||
|
echo " git clone https://github.com/extremeshok/clamav-unofficial-sigs.git /tmp/clamav-unofficial-sigs"
|
||||||
|
echo ""
|
||||||
|
echo " Not recomend, but you can try:"
|
||||||
|
echo " GIT_SSL_NO_VERIFY=true git clone ..."
|
||||||
|
echo ""
|
||||||
|
installation_failed=true
|
||||||
|
|
||||||
|
echononl "continue anyway [yes/no]: "
|
||||||
|
read OK
|
||||||
|
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
|
echononl "Wrong entry! - repeat [yes/nno]: "
|
||||||
|
read OK
|
||||||
|
done
|
||||||
|
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if ! $installation_failed ; then
|
if ! $installation_failed ; then
|
||||||
echo_ok
|
echo_ok
|
||||||
|
|||||||
Reference in New Issue
Block a user