Skip to content

Commit

Permalink
update context_templates directory
Browse files Browse the repository at this point in the history
* Update `context_templates` to add example extension to allow copying to local mount
* No-clobber copy to "non-example" version of context files if they do not exist locally
* Make a directory if needed for the disk buffer now that the local mount point is `var` and container doesn't create it for us
  • Loading branch information
Mark Bonsack committed Jan 29, 2020
1 parent a1198b8 commit 2bf9d03
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ gomplate $(find . -name *.tmpl | sed -E 's/^(\/.*\/)*(.*)\..*$/--file=\2.tmpl --

mkdir -p /opt/syslog-ng/etc/conf.d/local/context/
mkdir -p /opt/syslog-ng/etc/conf.d/local/config/
cp --verbose -n /opt/syslog-ng/etc/context_templates/* /opt/syslog-ng/etc/conf.d/local/context/
mkdir -p /opt/syslog-ng/var/data/disk-buffer/
cp --verbose /opt/syslog-ng/etc/context_templates/* /opt/syslog-ng/etc/conf.d/local/context/
for file in /opt/syslog-ng/etc/conf.d/local/context/*.example ; do cp --verbose -n $file ${file%.example}; done
cp --verbose -R /opt/syslog-ng/etc/local_config/* /opt/syslog-ng/etc/conf.d/local/config/

echo syslog-ng checking config
Expand Down

0 comments on commit 2bf9d03

Please sign in to comment.