mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 13:22:42 +00:00 
			
		
		
		
	Correct a number of mistakes
This commit is contained in:
		@@ -41,7 +41,7 @@ class HTTPSClient(client.HTTPConnection, object):
 | 
			
		||||
        if not os.path.exists('/tmp/confluent.ifidx') and '%' in host:
 | 
			
		||||
            ifidx = host.split('%', 1)[1]
 | 
			
		||||
            with open('/tmp/confluent.ifidx', 'w+') as ifout:
 | 
			
		||||
                ifout.write(ifdx)
 | 
			
		||||
                ifout.write(ifidx)
 | 
			
		||||
        self.stdheaders['CONFLUENT_APIKEY'] = get_apikey(node, host)
 | 
			
		||||
        if mgtiface:
 | 
			
		||||
            self.stdheaders['CONFLUENT_MGTIFACE'] = mgtiface
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ echo -n "" > /tmp/confluent.initq
 | 
			
		||||
TRIES=0
 | 
			
		||||
oum=$(umask)
 | 
			
		||||
umask 0077
 | 
			
		||||
mkdir -p /etc/confluennt
 | 
			
		||||
mkdir -p /etc/confluent
 | 
			
		||||
umask $oum
 | 
			
		||||
cd /sys/class/net
 | 
			
		||||
while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 60 ]; do
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst.
 | 
			
		||||
%post --nochroot
 | 
			
		||||
mkdir -p /mnt/sysimage/etc/confluent
 | 
			
		||||
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg |awk '{print $2}')
 | 
			
		||||
mgr=$(grep deploy_server /etc/confluent/confluennt.deploycfg |awk '{print $2}')
 | 
			
		||||
mgr=$(grep deploy_server /etc/confluent/confluent.deploycfg |awk '{print $2}')
 | 
			
		||||
curl -f https://$mgr/confluent-public/os/$profile/scripts/prechroot.sh > /tmp/postinst.sh
 | 
			
		||||
. /tmp/postinst.sh
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# This runs prior to the installer beginning. This is used to rewrite the 
 | 
			
		||||
# scripted install file, merging data from confluennt and identifying
 | 
			
		||||
# scripted install file, merging data from confluent and identifying
 | 
			
		||||
# the most appropriate install source.
 | 
			
		||||
 | 
			
		||||
# If you want to use a more custom partition plan, the easiest
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# This runs prior to the installer beginning. This is used to rewrite the 
 | 
			
		||||
# scripted install file, merging data from confluennt and identifying
 | 
			
		||||
# scripted install file, merging data from confluent and identifying
 | 
			
		||||
# the most appropriate install source.
 | 
			
		||||
 | 
			
		||||
# If you want to use a more custom partition plan, the easiest
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ mgr=$(grep ^deploy_server /etc/confluent/confluent.deploycfg|awk '{print $2}')
 | 
			
		||||
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|sed -e 's/^profile: //')
 | 
			
		||||
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
 | 
			
		||||
export mgr profile nodename
 | 
			
		||||
. /etc/confluennt/functions
 | 
			
		||||
. /etc/confluent/functions
 | 
			
		||||
 | 
			
		||||
# Customizations may go here
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user