nixos/graylog: fix startup
Until now the startup failed with an error like this: ``` com.github.joschi.jadconfig.ValidationException: Parent path /var/lib/graylog/server for Node ID file at /var/lib/graylog/server/node-id is not a directory ``` This happens since `graylog.service` ensures that `/var/lib/graylog` exists, however it doesn't take care of the directory for `cfg.nodeIdFile`.
This commit is contained in:
parent
aa2a7e49b8
commit
3464c602e8
|
@ -150,6 +150,9 @@ in
|
|||
rm -rf /var/lib/graylog/plugins || true
|
||||
mkdir -p /var/lib/graylog/plugins -m 755
|
||||
|
||||
mkdir -p "$(dirname ${cfg.nodeIdFile})"
|
||||
chown -R ${cfg.user} "$(dirname ${cfg.nodeIdFile})"
|
||||
|
||||
for declarativeplugin in `ls ${glPlugins}/bin/`; do
|
||||
ln -sf ${glPlugins}/bin/$declarativeplugin /var/lib/graylog/plugins/$declarativeplugin
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue