File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,21 @@ check_download() {
105
105
local URL=$1
106
106
local EXPECTED_HASH=$2
107
107
local OUTPUT_FILE=$3
108
+ echo >> /root/install_customice.log
109
+ echo $URL >> /root/install_customice.log
110
+ echo $EXPECTED_HASH >> /root/install_customice.log
111
+ echo $OUTPUT_FILE >> /root/install_customice.log
112
+
108
113
109
114
wget --waitretry=10 -t 5 -O " /root/$OUTPUT_FILE " " $URL "
110
115
111
116
if [[ $? -eq 0 ]]; then
112
117
if check_hash " $OUTPUT_FILE " ; then
113
- echo " Hash is okay"
118
+ echo " Hash is okay" >> /root/install_customice.log
114
119
break
115
120
else
116
121
# echo "Hash-Error"
117
- rm -f " $OUTPUT_FILE "
122
+ rm -f " $OUTPUT_FILE " && echo ' del file false Hash ' >> /root/install_customice.log
118
123
fi
119
124
fi
120
125
}
Original file line number Diff line number Diff line change @@ -105,16 +105,21 @@ check_download() {
105
105
local URL=$1
106
106
local EXPECTED_HASH=$2
107
107
local OUTPUT_FILE=$3
108
+ echo >> /root/install_customice.log
109
+ echo $URL >> /root/install_customice.log
110
+ echo $EXPECTED_HASH >> /root/install_customice.log
111
+ echo $OUTPUT_FILE >> /root/install_customice.log
112
+
108
113
109
114
wget --waitretry=10 -t 5 -O " /root/$OUTPUT_FILE " " $URL "
110
115
111
116
if [[ $? -eq 0 ]]; then
112
117
if check_hash " $OUTPUT_FILE " ; then
113
- echo " Hash is okay"
118
+ echo " Hash is okay" >> /root/install_customice.log
114
119
break
115
120
else
116
121
# echo "Hash-Error"
117
- rm -f " $OUTPUT_FILE "
122
+ rm -f " $OUTPUT_FILE " && echo ' del file false Hash ' >> /root/install_customice.log
118
123
fi
119
124
fi
120
125
}
You can’t perform that action at this time.
0 commit comments