From 7b8f882d80d82e8e6a61457a5cb62799bc3dd413 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 16 Dec 2024 01:47:39 +0000 Subject: [PATCH 1/2] fix(serviceman): do not use 'sudo' or 'env PATH="$PATH"' --- brew/brew-update-service-install | 2 +- dashcore-utils/dashd-hd-service-install | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/brew/brew-update-service-install b/brew/brew-update-service-install index 262b95c0c..a97b677b0 100644 --- a/brew/brew-update-service-install +++ b/brew/brew-update-service-install @@ -13,7 +13,7 @@ main() { ( fi serviceman --version - env PATH="$PATH" serviceman add --agent \ + serviceman add --agent \ --workdir ~/.local/opt/brew/ \ --name sh.brew.updater -- \ ~/.local/bin/brew-update-hourly diff --git a/dashcore-utils/dashd-hd-service-install b/dashcore-utils/dashd-hd-service-install index ce9b65e92..a25a7f854 100644 --- a/dashcore-utils/dashd-hd-service-install +++ b/dashcore-utils/dashd-hd-service-install @@ -119,8 +119,7 @@ fn_srv_install() { ( cd "${my_vol}" || return 1 # leave options unquoted so they're interpreted separately # shellcheck disable=SC2086 - sudo env PATH="${PATH}" \ - serviceman add --name "${my_name}" -- \ + serviceman add --name "${my_name}" -- \ dashd \ ${my_net_flag} \ -usehd \ From 4eff5b6cbec942b8c3aa1ed42ae547dad24813d9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 16 Dec 2024 01:48:26 +0000 Subject: [PATCH 2/2] doc(syncthing): 'env PATH=' is no longer needed for serviceman --- syncthing/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthing/README.md b/syncthing/README.md index 5b7fbbd00..43f4f86e9 100644 --- a/syncthing/README.md +++ b/syncthing/README.md @@ -46,7 +46,7 @@ webi serviceman ```sh mkdir -p ~/.config/syncthing/ -env PATH="$PATH" serviceman add --agent --name syncthing -- \ +serviceman add --agent --name syncthing -- \ syncthing --home ~/.config/syncthing/ ```