Skip to content

Commit 9e72313

Browse files
committed
Minor adjustment to support openssl fingerprint output format variations.
1 parent 796d0d2 commit 9e72313

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mig/install/migcheckssl-template.sh.cronjob

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ if [[ ${org_mtime} -ne ${new_mtime} && "${org_chksum}" != "${new_chksum}" ]]; th
282282
done
283283
if [ -n "${migrid_subservices}" ]; then
284284
pem_sha256_fp=$(openssl x509 -noout -fingerprint -sha256 -in ${combined_pem})
285-
pem_sha256_fp=${pem_sha256_fp/SHA256 Fingerprint=/}
285+
pem_sha256_fp=${pem_sha256_fp/* Fingerprint=/}
286286
echo "Please manually update ftps/davs sha256 fingerprint in MiGserver.conf to:"
287287
echo "${pem_sha256_fp}"
288288
echo "or point those configuration values to the latest fingerprint file with:"

tests/fixture/confs-stdlocal/migcheckssl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ if [[ ${org_mtime} -ne ${new_mtime} && "${org_chksum}" != "${new_chksum}" ]]; th
282282
done
283283
if [ -n "${migrid_subservices}" ]; then
284284
pem_sha256_fp=$(openssl x509 -noout -fingerprint -sha256 -in ${combined_pem})
285-
pem_sha256_fp=${pem_sha256_fp/SHA256 Fingerprint=/}
285+
pem_sha256_fp=${pem_sha256_fp/* Fingerprint=/}
286286
echo "Please manually update ftps/davs sha256 fingerprint in MiGserver.conf to:"
287287
echo "${pem_sha256_fp}"
288288
echo "or point those configuration values to the latest fingerprint file with:"

0 commit comments

Comments
 (0)