diff options
Diffstat (limited to 'bin/container')
-rwxr-xr-x | bin/container | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/container b/bin/container index 1ec73ef..172caec 100755 --- a/bin/container +++ b/bin/container @@ -80,9 +80,15 @@ do echo "${DATE} ${HOST} ${CONTAINER_USER} ${PROGRAM} ${COMMAND} ${OPTIONS}" >> "/var/log/${SOFTWARE}/${PROGRAM}.log" # irc - if [ -e /usr/bin/irk ] && [ -e "/etc/${SOFTWARE}.conf" ] + if [ -e /usr/bin/irk ] then - . "/etc/${SOFTWARE}.conf" + for FILE in "/etc/${SOFTWARE}/${PROGRAM}.conf" "/etc/${SOFTWARE}/${PROGRAM}.conf.d"/*.conf + do + if [ -e "${FILE}" ] + then + . "${FILE}" + fi + done if [ -n "${IRK_TARGETS}" ] then |