Fix pending control-plane helpers
This commit is contained in:
parent
d08322e5f8
commit
16bd34513e
1 changed files with 1 additions and 19 deletions
|
|
@ -107,6 +107,7 @@ determine_allowlist_mode() {
|
||||||
print_warn "pulse-sensor-proxy ${INSTALLED_PROXY_VERSION} does not support allowed_nodes_file; using inline allow list updates"
|
print_warn "pulse-sensor-proxy ${INSTALLED_PROXY_VERSION} does not support allowed_nodes_file; using inline allow list updates"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
configure_local_authorized_key() {
|
configure_local_authorized_key() {
|
||||||
local auth_line=$1
|
local auth_line=$1
|
||||||
local auth_keys_file="/root/.ssh/authorized_keys"
|
local auth_keys_file="/root/.ssh/authorized_keys"
|
||||||
|
|
@ -2962,22 +2963,3 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
record_pending_control_plane() {
|
|
||||||
local mode="$1"
|
|
||||||
if [[ -z "$PULSE_SERVER" ]]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > "$PENDING_CONTROL_PLANE_FILE" <<EOF
|
|
||||||
PENDING_PULSE_SERVER="${PULSE_SERVER}"
|
|
||||||
PENDING_MODE="${mode}"
|
|
||||||
PENDING_STANDALONE="${STANDALONE}"
|
|
||||||
PENDING_HTTP_MODE="${HTTP_MODE}"
|
|
||||||
PENDING_HTTP_ADDR="${HTTP_ADDR}"
|
|
||||||
EOF
|
|
||||||
chmod 0600 "$PENDING_CONTROL_PLANE_FILE" 2>/dev/null || true
|
|
||||||
}
|
|
||||||
|
|
||||||
clear_pending_control_plane() {
|
|
||||||
rm -f "$PENDING_CONTROL_PLANE_FILE" 2>/dev/null || true
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue