v1
This commit is contained in:
18
roles/kernelcare/templates/kc-install.j2
Normal file
18
roles/kernelcare/templates/kc-install.j2
Normal 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."
|
||||
Reference in New Issue
Block a user