bookworm tcsd wants /etc/tcsd.conf root:tss

This commit is contained in:
наб 2023-06-12 19:30:36 +02:00
parent 39c3201f63
commit d51d8a3c86
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -15,7 +15,7 @@
if [ -e /etc/tcsd.conf ]; then
INST_CFG /etc/tcsd.conf
chown tss:tss "${TARGET_DIR:-MUST_EXIST}/etc/tcsd.conf"
chown root:tss "${TARGET_DIR:-MUST_EXIST}/etc/tcsd.conf"
system_ps_file="$(awk -F '[[:space:]]*=[[:space:]]*' '!/^[[:space:]]*#/ && !/^$/ && $1 ~ /system_ps_file$/ {gsub(/[[:space:]]*$/, "", $2); print $2}' /etc/tcsd.conf)"
system_ps_file="${system_ps_file:-/var/lib/tpm/system.data}"
fi