fix: rename kanidm account

This commit is contained in:
dettlaff 2025-01-18 22:34:46 +04:00
parent 482d48d923
commit 7f6599bc33
2 changed files with 3 additions and 4 deletions

View file

@ -91,8 +91,8 @@ class KanidmAdminToken:
"api-token", "api-token",
"generate", "generate",
"--rw", "--rw",
"selfprivacy", "sp.selfprivacy-api.service-account",
"token2", "kanidm_service_account_token",
], ],
text=True, text=True,
) )

View file

@ -6,7 +6,7 @@ import typing
import subprocess import subprocess
import json import json
from typing import List from typing import List
from os import path from os import listdir, path
from os import makedirs from os import makedirs
from os.path import join from os.path import join
from functools import lru_cache from functools import lru_cache
@ -25,7 +25,6 @@ import selfprivacy_api.utils.network as network_utils
from selfprivacy_api.services.api_icon import API_ICON from selfprivacy_api.services.api_icon import API_ICON
from selfprivacy_api.utils import USERDATA_FILE, DKIM_DIR, SECRETS_FILE from selfprivacy_api.utils import USERDATA_FILE, DKIM_DIR, SECRETS_FILE
from selfprivacy_api.utils.block_devices import BlockDevices from selfprivacy_api.utils.block_devices import BlockDevices
from selfprivacy_api.utils import read_account_uri
from selfprivacy_api.services.templated_service import ( from selfprivacy_api.services.templated_service import (
SP_MODULES_DEFENITIONS_PATH, SP_MODULES_DEFENITIONS_PATH,
SP_SUGGESTED_MODULES_PATH, SP_SUGGESTED_MODULES_PATH,