mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
fix(serviceman): do not use 'sudo' or 'env PATH="$PATH"'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user