mirror of
https://github.com/xcat2/confluent.git
synced 2026-04-10 19:01:35 +00:00
Induce more versions of openssh to do the proper thing
This commit is contained in:
@@ -26,12 +26,13 @@ chmod 700 "$ASKPASS_SCRIPT"
|
||||
# Set SSH_ASKPASS environment variable
|
||||
export SSH_ASKPASS="$ASKPASS_SCRIPT"
|
||||
export SSH_ASKPASS_REQUIRE=force
|
||||
export DISPLAY=none
|
||||
|
||||
CERTDIR=$(mktemp -d)
|
||||
trap "rm -rf $CERTDIR" EXIT
|
||||
cd "$CERTDIR"
|
||||
python3 /opt/confluent/lib/python/confluent/certutil.py -s "$SWITCHNAME"
|
||||
ssh $SWITCHUSER@"$SWITCHNAME" <<EOC
|
||||
setsid ssh $SWITCHUSER@"$SWITCHNAME" <<EOC
|
||||
enter candidate exclusive
|
||||
/ system json-rpc-server admin-state enable
|
||||
/ system tls server-profile fullcert key "$(<$CERTDIR/key.pem)"
|
||||
@@ -39,4 +40,4 @@ enter candidate exclusive
|
||||
/ system json-rpc-server network-instance mgmt https admin-state enable
|
||||
/ system json-rpc-server network-instance mgmt https tls-profile fullcert
|
||||
commit save
|
||||
EOC
|
||||
EOC
|
||||
|
||||
Reference in New Issue
Block a user