diff --git a/authentik/outposts/apps.py b/authentik/outposts/apps.py index b9690724c..982955693 100644 --- a/authentik/outposts/apps.py +++ b/authentik/outposts/apps.py @@ -65,7 +65,7 @@ class AuthentikOutpostConfig(AppConfig): socket = Path(unix_socket_path) if socket.exists() and access(socket, R_OK): LOGGER.debug("Detected local docker socket") - if not DockerServiceConnection.objects.filter(local=True).exists(): + if len(DockerServiceConnection.objects.filter(local=True)) == 0: LOGGER.debug("Created Service Connection for docker") DockerServiceConnection.objects.create( name="Local Docker connection", diff --git a/lifecycle/system_migrations/to_0_100_authentik.py b/lifecycle/system_migrations/to_0_100_authentik.py index b1d33b885..7133e74e0 100644 --- a/lifecycle/system_migrations/to_0_100_authentik.py +++ b/lifecycle/system_migrations/to_0_100_authentik.py @@ -22,6 +22,9 @@ ALTER TABLE passbook_flows_flowstagebinding RENAME TO authentik_flows_flowstageb ALTER TABLE passbook_flows_stage RENAME TO authentik_flows_stage; ALTER TABLE passbook_outposts_outpost RENAME TO authentik_outposts_outpost; ALTER TABLE passbook_outposts_outpost_providers RENAME TO authentik_outposts_outpost_providers; +ALTER TABLE passbook_outposts_dockerserviceconnection RENAME TO authentik_outposts_dockerserviceconnection; +ALTER TABLE passbook_outposts_kubernetesserviceconnection RENAME TO authentik_outposts_kubernetesserviceconnection; +ALTER TABLE passbook_outposts_outpostserviceconnection RENAME TO authentik_outposts_outpostserviceconnection; ALTER TABLE passbook_policies_dummy_dummypolicy RENAME TO authentik_policies_dummy_dummypolicy; ALTER TABLE passbook_policies_expiry_passwordexpirypolicy RENAME TO authentik_policies_expiry_passwordexpirypolicy; ALTER TABLE passbook_policies_expression_expressionpolicy RENAME TO authentik_policies_expression_expressionpolicy;