fix: the root CA is created by the server, an offline CA or a Simple CA service, chosen at setup; the shell can stay open in a tab of its own, the Docker page is offered only with Docker, and the test scripts are in bin/.
Release / release (push) Failing after 14m20s
Release / release (push) Failing after 14m20s
This commit is contained in:
1 parent
ff0c93ed73
commit
a649331aa2
49 files changed
+1597
-637
No files matched your search
@@ -33,7 +33,9 @@ case "$1" in
|
||||
answer linux-manager/psk; LINUX_MANAGER_PSK="$ANSWER"
|
||||
answer linux-manager/p2s_enabled; LINUX_MANAGER_P2S_ENABLED="$ANSWER"
|
||||
answer linux-manager/p2s_address_pool; LINUX_MANAGER_P2S_ADDRESS_POOL="$ANSWER"
|
||||
answer linux-manager/pki_root; LINUX_MANAGER_PKI_ROOT="$ANSWER"
|
||||
answer linux-manager/pki_root_name; LINUX_MANAGER_PKI_ROOT_NAME="$ANSWER"
|
||||
answer linux-manager/pki_simple_ca_url; LINUX_MANAGER_PKI_SIMPLE_CA_URL="$ANSWER"
|
||||
answer linux-manager/wg_enabled; LINUX_MANAGER_WG_ENABLED="$ANSWER"
|
||||
answer linux-manager/wg_address; LINUX_MANAGER_WG_ADDRESS="$ANSWER"
|
||||
answer linux-manager/wg_listen_port; LINUX_MANAGER_WG_LISTEN_PORT="$ANSWER"
|
||||
@@ -47,7 +49,8 @@ case "$1" in
|
||||
LINUX_MANAGER_REMOTE_ADDRS LINUX_MANAGER_REMOTE_ID \
|
||||
LINUX_MANAGER_REMOTE_CIDRS LINUX_MANAGER_PSK \
|
||||
LINUX_MANAGER_P2S_ENABLED LINUX_MANAGER_P2S_ADDRESS_POOL \
|
||||
LINUX_MANAGER_PKI_ROOT_NAME LINUX_MANAGER_WG_ENABLED \
|
||||
LINUX_MANAGER_PKI_ROOT LINUX_MANAGER_PKI_ROOT_NAME \
|
||||
LINUX_MANAGER_PKI_SIMPLE_CA_URL LINUX_MANAGER_WG_ENABLED \
|
||||
LINUX_MANAGER_WG_ADDRESS LINUX_MANAGER_WG_LISTEN_PORT
|
||||
|
||||
# --- Hand a candidate configuration to ucf ---
|
||||
@@ -82,6 +85,14 @@ case "$1" in
|
||||
db_set linux-manager/admin_username ""
|
||||
db_set linux-manager/admin_password ""
|
||||
|
||||
# The Simple CA setup code for linux-manager-setup to exchange for the token; the answer is cleared, as
|
||||
# the code works once.
|
||||
db_get linux-manager/pki_setup_code
|
||||
if [ -n "$RET" ]; then
|
||||
(umask 077; printf '%s\n' "$RET" > /etc/linux-manager/pki-setup-code)
|
||||
fi
|
||||
db_set linux-manager/pki_setup_code ""
|
||||
|
||||
# The firewall is not touched here. Enabling it, allowing SSH and
|
||||
# setting the forward policy all belong to linux-manager-setup, which does
|
||||
# them only once the configuration says this host is a router.
|
||||
|
||||
Reference in new issue
Block a user