Direct download does not work. So stop installation with option to proceed.
This commit is contained in:
		| @@ -506,12 +506,23 @@ echo "Download sources.." | ||||
| ## - | ||||
| echononl "\tDownload dovecot-${_version}.tar.gz" | ||||
| if [ ! -f "${_src_base_dir}/dovecot-${_version}.tar.gz" ]; then | ||||
|    wget http://www.dovecot.org/releases/${dovecot_main_version}/dovecot-${_version}.tar.gz > /dev/null 2>&1 | ||||
|    wget --no-check-certificate https://dovecot.org/releases/${dovecot_main_version}/dovecot-${_version}.tar.gz > /dev/null 2>&1 | ||||
|    if [ "$?" = 0 ]; then | ||||
|       echo -e "$rc_done" | ||||
|    else | ||||
|       echo -e "$rc_failed" | ||||
|       fatal "Download failed" | ||||
|       error "Direct download of 'dovecot-${_version}.tar.gz' failed | ||||
|  | ||||
|                    Download \033[1mdovecot-${_version}.tar.gz\033[m manually and proceed instllation." | ||||
|  | ||||
| 		echononl "Proceed instllation [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 | ||||
| else | ||||
|    echo -e "$rc_skipped" | ||||
| @@ -522,12 +533,25 @@ fi | ||||
| ## - | ||||
| echononl "\tDownload dovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz.." | ||||
| if [ ! -f "${_src_base_dir}/dovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz" ]; then | ||||
|    wget http://pigeonhole.dovecot.org/releases/${dovecot_main_version}/dovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz > /dev/null 2>&1 | ||||
|    wget --no-check-certificate https://pigeonhole.dovecot.org/releases/${dovecot_main_version}/dovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz > /dev/null 2>&1 | ||||
|    if [ "$?" = 0 ]; then | ||||
|       echo -e "$rc_done" | ||||
|    else | ||||
|       echo -e "$rc_failed" | ||||
|       fatal "Download failed" | ||||
|       error "Direct download of 'dovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz' failed | ||||
|  | ||||
|                    Download \033[1mdovecot-${dovecot_main_version}-pigeonhole-${_pigeonhole}.tar.gz\033[m manually  | ||||
|                    and proceed instllation." | ||||
|  | ||||
| 		echononl "\tProceed instllation [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 | ||||
| else | ||||
|    echo -e "$rc_skipped" | ||||
| @@ -564,6 +588,7 @@ if $_new ; then | ||||
|    else | ||||
|       echo -e "$rc_skipped" | ||||
|    fi | ||||
| fi | ||||
|  | ||||
|  | ||||
| ## ----------------- | ||||
| @@ -625,8 +650,6 @@ if $_new ; then | ||||
| 	echo -e "$rc_skipped" | ||||
| fi | ||||
|  | ||||
| fi | ||||
|  | ||||
| if $update ; then | ||||
|  | ||||
|    # - Deaktiviere Cronjobs | ||||
|   | ||||
		Reference in New Issue
	
	Block a user