Bugfixes for fody.

This commit is contained in:
Johan Björklund 2024-11-19 13:08:21 +01:00
parent 25cdd784a7
commit 584afac619
Signed by untrusted user: bjorklund
GPG key ID: 5E8401339C7F5037

View file

@ -251,7 +251,7 @@ class soc::intelmq(
exec { 'Setup fody-api user':
command => "sudo -u intelmq /opt/intelmq/venv/bin/fody-adduser --user ${api_user} --password ${api_pass}",
unless => "sqlite3 /etc/intelmq/fody/fody-session.sqlite 'SELECT username FROM user WHERE username =${api_user}' | grep -q ${api_user}",
unless => "sqlite3 /etc/intelmq/fody/fody-session.sqlite \"SELECT username FROM user WHERE username ='${api_user}'\" | grep -q ${api_user}",
}
file {