Make certificate symlinking more robust
This commit is contained in:
@@ -1090,13 +1090,13 @@ link_ssl_certs() {
|
|||||||
|
|
||||||
for f in "${source_certs[@]}"; do
|
for f in "${source_certs[@]}"; do
|
||||||
if [[ -f $f ]]; then
|
if [[ -f $f ]]; then
|
||||||
if ! execute sudo ln -fs "$f" "$mc_cert_link"; then
|
if execute sudo ln -fs "$f" "$mc_cert_link"; then
|
||||||
err "Symlinking $f certificate failed"
|
debug "Symlinked $mc_cert_link to $f"
|
||||||
continue
|
return 0
|
||||||
fi
|
fi
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
return 1 # symlink failed
|
||||||
}
|
}
|
||||||
|
|
||||||
# @description Restore the mjr license file from MJR_FILE or other common locations
|
# @description Restore the mjr license file from MJR_FILE or other common locations
|
||||||
|
|||||||
Reference in New Issue
Block a user