diff options
author | Karel Kočí <cynerd@email.cz> | 2020-09-13 11:28:02 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-09-13 11:29:43 +0200 |
commit | 7b7d074c8d18ce7122d50ec207fd71a3bd88c47b (patch) | |
tree | 7d39c33923ecd1b8c0ded99a82752a79a087b642 /admin | |
parent | 6f4874ad9896c3557bcfb9ad8d6f6e0bb5ac8413 (diff) |
syslog-ng: tweak shell code of network_localhost little bit
We can get rid of pipe with -n flag to sysctl.
Signed-off-by: Karel Kočí <cynerd@email.cz>
Diffstat (limited to 'admin')
-rw-r--r-- | admin/syslog-ng/Makefile | 2 | ||||
-rwxr-xr-x | admin/syslog-ng/files/scl/network_localhost/detect.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/syslog-ng/Makefile b/admin/syslog-ng/Makefile index 490229195..db5352bbd 100644 --- a/admin/syslog-ng/Makefile +++ b/admin/syslog-ng/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=syslog-ng PKG_VERSION:=3.29.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz> PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later diff --git a/admin/syslog-ng/files/scl/network_localhost/detect.sh b/admin/syslog-ng/files/scl/network_localhost/detect.sh index ef76272c4..acfb40704 100755 --- a/admin/syslog-ng/files/scl/network_localhost/detect.sh +++ b/admin/syslog-ng/files/scl/network_localhost/detect.sh @@ -1,5 +1,5 @@ #!/bin/sh -if [ "$(sysctl net.ipv6.conf.lo.disable_ipv6 | cut -d' ' -f 3)" = "0" ]; then +if [ "$(sysctl -n net.ipv6.conf.lo.disable_ipv6)" = "0" ]; then echo 'network(ip("::1") port(514) transport(udp) ip-protocol(6) )' else echo 'network(ip("127.0.0.1") port(514) transport(udp) ip-protocol(4) )' |