2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 13:00:03 +00:00

Fix el8 prescript retrieval

Mistakenly was using the deployer
ip as profile.
This commit is contained in:
Jarrod Johnson 2020-05-14 17:16:26 -04:00
parent b52568dc10
commit 008bf33be3

View File

@ -11,7 +11,7 @@ python3
%end
%pre
profile=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}')
profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}')
mgr=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}')
curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst.sh
. /tmp/preinst.sh
@ -19,7 +19,7 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst.
%post --nochroot
mkdir -p /mnt/sysimage/etc/confluent
profile=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}')
profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}')
mgr=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}')
curl -f https://$mgr/confluent-public/os/$profile/scripts/post.sh > /tmp/postinst.sh
. /tmp/postinst.sh