From ebfad751c7c2623128d7eb64cc89309e86e71eda Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 8 Nov 2022 21:12:48 +0100 Subject: [PATCH] coturn: use return in init script "start_service()" is a function, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper --- net/coturn/Makefile | 2 +- net/coturn/files/turnserver.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/coturn/Makefile b/net/coturn/Makefile index 728c482..850c95a 100644 --- a/net/coturn/Makefile +++ b/net/coturn/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coturn PKG_VERSION:=4.5.2 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/coturn/coturn/tar.gz/$(PKG_VERSION)? diff --git a/net/coturn/files/turnserver.init b/net/coturn/files/turnserver.init index 8f36d5a..73bf916 100755 --- a/net/coturn/files/turnserver.init +++ b/net/coturn/files/turnserver.init @@ -20,7 +20,7 @@ start_service() { config_get_bool enabled general enabled 0 if [ $enabled -eq 0 ]; then $LOG_ERR service not enabled in /etc/config/$NAME - exit 1 + return 1 fi config_get_bool log_stderr general log_stderr 1 -- 2.30.2