@cryptotaxi247 / netdata-1 / commits / 0275a0d46

Properly handle service type detection failures when installing as a system service. (#14658)

Austin S. Hemmelgarn committed Mar 6, 2023 at 07:13 UTC 0275a0d468d8b41d4b1d84955b99a77c9eed8759
1 file changed +2 -2
system/install-service.sh.in
+2 -2
@@ -644,7 +644,7 @@ detect_linux_svc_type() {
644 install_linux_service() {
645 t="$(detect_linux_svc_type)"
646
647 - if [ -z "${t}" ]; then
647 + if [ -z "${t}" ] || [ "${t}" = 'detect' ]; then
648 exit 2
649 fi
650
@@ -654,7 +654,7 @@ install_linux_service() {
654 linux_cmds() {
655 t="$(detect_linux_svc_type)"
656
657 - if [ -z "${t}" ]; then
657 + if [ -z "${t}" ] || [ "${t}" = 'detect' ]; then
658 exit 2
659 fi
660