This repository has been archived on 2024-07-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
etckeeper/aide/aide.conf.d/10_aide_hostname
T
2021-10-27 17:20:29 +02:00

20 lines
423 B
Bash
Executable File

#!/bin/sh
escapere()
{
sed 's/\./\\./g'
}
if [ -n "$(hostname --fqdn)" ]; then
echo "@@define FQDN $(hostname --fqdn | escapere)"
fi
if [ -n "$(hostname)" ]; then
echo "@@define HOSTNAME $(hostname | escapere)"
fi
if [ -n "$(dnsdomainname)" ]; then
echo "@@define DNSDOMAINNAME $(dnsdomainname | escapere)"
fi
if [ -n "$(dpkg --print-architecture)" ]; then
echo "@@define ARCH $(dpkg --print-architecture)"
fi