This commit is contained in:
Gary Kwok
2024-01-29 17:53:04 +08:00
commit ef6e10728d
24 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e -o pipefail
eportal_url="{{ eportal_srv }}"
hash curl
export KCARE_REPO="$eportal_url/repo"
export KCARE_PATCH_SERVER="$eportal_url"
export KCARE_REGISTRATION_URL="$eportal_url/admin/api/kcare"
#curl -s "$eportal_url/installer" | bash
curl -L "$eportal_url/installer" -o /tmp/kc-installer.sh
sed -i 's/^PACKAGE_NAME=\${KCARE_PACKAGE_NAME:-\"kernelcare\"}/PACKAGE_NAME=\"\/root\/kernelcare-2.66-1.el7.x86_64.rpm \/root\/pyOpenSSL-0.13.1-4.el7.x86_64.rpm\"/g' /tmp/kc-installer.sh
bash /tmp/kc-installer.sh
echo "Updating kernelcare repo..."
curl -s "$eportal_url/set-kernelcare-repo" | bash
echo "Done."