File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 12
12
"check_download" : {
13
13
"type" : " Boolean" ,
14
14
"description" : " Whether to check the integrity of the downloaded file" ,
15
- "default" : false
15
+ "default" : true
16
16
}
17
17
},
18
18
"input_method" : " environment" ,
Original file line number Diff line number Diff line change @@ -17,26 +17,29 @@ if [[ "$PT_check_download" != "true" ]]; then
17
17
fi
18
18
19
19
if ! which gpg ; then
20
- echo " gpg binary required in path for checking download"
21
- exit 1
20
+ echo " gpg binary required in path for checking download. Skipping check. "
21
+ exit 0
22
22
fi
23
+
23
24
echo " Importing Puppet gpg public key"
24
25
gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 4528B6CD9E61EF26
25
26
if gpg --list-key --fingerprint 4528B6CD9E61EF26 | grep -q -E " D681 +1ED3 +ADEE +B844 +1AF5 +AA8F +4528 +B6CD +9E61 +EF26" ; then
26
- echo " gpg public key imported successfully! "
27
+ echo " gpg public key imported successfully. "
27
28
else
28
- echo " Could not import gpg public key - wrong fingerprint"
29
+ echo " Could not import gpg public key - wrong fingerprint. "
29
30
exit 1
30
31
fi
32
+
31
33
sigpath=${PT_path} .asc
32
34
sigsource=${PT_source} .asc
33
- echo " Downloading tarball signature from ${sigsource} "
35
+
36
+ echo " Downloading tarball signature from ${sigsource} ..."
34
37
curl -f -L -o " ${sigpath} " " ${sigsource} "
35
- echo " Downloaded tarball signature to ${sigpath} "
36
- echo " Checking tarball signature at ${sigpath} "
38
+ echo " Downloaded tarball signature to ${sigpath} . "
39
+ echo " Checking tarball signature at ${sigpath} ... "
37
40
if gpg --verify " ${sigpath} " " ${PT_path} " | grep " Good signature" ; then
38
41
echo " Signature verification failed, please re-run the installation."
39
42
exit 1
40
43
else
41
- echo " Signature verification suceeded! "
44
+ echo " Signature verification suceeded. "
42
45
fi
You can’t perform that action at this time.
0 commit comments