initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

26
ulogd/ulogd.install Normal file
View File

@@ -0,0 +1,26 @@
post_install() {
if ! getent group ulogd &>/dev/null; then
groupadd -r ulogd >/dev/null
fi
if ! getent passwd ulogd &>/dev/null; then
useradd -r -g ulogd -d /dev/null -s /bin/nologin ulogd >/dev/null
fi
chown root:ulogd etc/ulogd.conf
ulogd_shell=$(getent passwd ulogd | cut -d: -f7)
if [ "$ulogd_shell" != '/bin/nologin' ]; then
chsh -s /bin/nologin ulogd &>/dev/null
fi
}
post_upgrade() {
post_install
}
post_remove() {
if getent passwd ulogd &>/dev/null; then
userdel ulogd >/dev/null
fi
if getent group ulogd &>/dev/null; then
groupdel ulogd >/dev/null
fi
}