fix(deploy): prepare server auth root before configure
This commit is contained in:
@@ -944,6 +944,16 @@ task13_configure_server_oidc_authentication() {
|
||||
--authentik-base-url "https://task13-fake-oidc:9443" --user-group task13-users --admin-group task13-admins
|
||||
}
|
||||
|
||||
task13_prepare_server_auth_canonical_root() {
|
||||
[[ "${TASK13_PROFILE:-}" == server \
|
||||
&& "$TASK13_AUTH_ROOT" == "$TASK13_TMP/auth" \
|
||||
&& ! -L "$TASK13_AUTH_ROOT" \
|
||||
&& ( ! -e "$TASK13_AUTH_ROOT" || -d "$TASK13_AUTH_ROOT" ) ]] \
|
||||
|| task13_fail "refusing to prepare an unexpected server authentication root"
|
||||
task13_run_logged "prepare server authentication canonical root" sudo -n -- \
|
||||
install -d -o 0 -g 0 -m 0700 -- "$TASK13_AUTH_ROOT"
|
||||
}
|
||||
|
||||
task13_prepare_local_auth_runtime() {
|
||||
local owner_label
|
||||
owner_label="$(docker volume inspect --format '{{ index .Labels "io.thothii.task13.run" }}' \
|
||||
@@ -2844,6 +2854,7 @@ task13_server_smoke_main() {
|
||||
task13_write_server_fixture_files
|
||||
task13_seed_registry
|
||||
task13_build_tht
|
||||
task13_prepare_server_auth_canonical_root
|
||||
task13_configure_server_oidc_authentication
|
||||
task13_start_server_stack
|
||||
task13_record_project_image_evidence
|
||||
|
||||
Reference in New Issue
Block a user