cloudflared: fix duplicate "run" command argument
authorBohdan Chubuk <[email protected]>
Sun, 9 Nov 2025 22:14:28 +0000 (00:14 +0200)
committerTianling Shen <[email protected]>
Mon, 10 Nov 2025 12:06:34 +0000 (20:06 +0800)
The init script was appending the 'run' subcommand twice. The first
instance was misplaced, causing a command syntax error by placing 'run'
before other tunnel options, which breaks the service.

This patch removes the first, incorrect 'run' argument, leaving the
second one in the correct position after all options have been set.

This fixes a regression introduced in pull request #27786.

Ref: https://github.com/openwrt/packages/pull/27786
Signed-off-by: Bohdan Chubuk <[email protected]>
net/cloudflared/Makefile
net/cloudflared/files/cloudflared.init

index 604834e920a5bae4248403116cbd99f5f315d8ad..066113a731ae55bdb8f0c4385326b5570ceee5f3 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cloudflared
 PKG_VERSION:=2025.11.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/cloudflare/cloudflared/tar.gz/$(PKG_VERSION)?
index 2e61f5a66d0b9843cb5bfab789b07bcf8821c22e..cfdd091aad31316e3b04ec09007c5296cab80a50 100755 (executable)
@@ -26,7 +26,6 @@ start_service() {
        procd_open_instance "$CONF"
        procd_set_param command "$PROG" "tunnel"
        procd_append_param command "--no-autoupdate"
-       procd_append_param command "run"
 
        append_param_arg "edge_bind_address"
        append_param_arg "edge_ip_version"