Skip to content
Snippets Groups Projects
Commit 05a8ce56 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Add function enabling debug messages for AUM


Function `enable_aum_debug` enable debug messages and restart AUM.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 8f826964
No related branches found
No related tags found
3 merge requests!24Apply all changes from v2021pre,!21Backport ostree changes v2022dev1 -> v2021pre,!19Add test for upgrading from previous release
......@@ -263,3 +263,17 @@ gen_ed25519_random_public()
{
openssl genpkey -algorithm ED25519 | openssl pkey -outform DER | tail -c 32 | base64
}
# Enable debug messages for AUM
enable_aum_debug ()
{
AUMDIR=/etc/systemd/system/apertis-update-manager.service.d
mkdir -p "${AUMDIR}"
tee "${AUMDIR}"/override.conf <<E_O_F
[Service]
Environment=G_DEBUG=G_LOG_LEVEL_DEBUG
Environment=G_MESSAGES_DEBUG=AUM
E_O_F
systemctl daemon-reload
systemctl restart apertis-update-manager
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment