dustin
/
jenkinsagent
Archived
1
0
Fork 0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
jenkinsagent/rootfs/overlay/usr/libexec/gen-rsyslog-conf.sh

13 lines
232 B
Bash
Executable File

#!/bin/sh -e
# shellcheck disable=SC2046
set -- $(cat /proc/cmdline)
while [ $# -ge 1 ]; do
case "$1" in
rsyslog.dest=*)
printf '*.* @%s\n' "${1#*=}" >> /run/rsyslog.d/remote.conf
;;
esac
shift
done