Skip to content

Commit

Permalink
fix root env (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Nov 30, 2024
1 parent 86ff7f8 commit c113988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ install() {

env="NZ_SERVER=$NZ_SERVER NZ_CLIENT_SECRET=$NZ_CLIENT_SECRET NZ_TLS=$NZ_TLS NZ_DISABLE_AUTO_UPDATE=$NZ_DISABLE_AUTO_UPDATE NZ_DISABLE_FORCE_UPDATE=$DISABLE_FORCE_UPDATE NZ_DISABLE_COMMAND_EXECUTE=$NZ_DISABLE_COMMAND_EXECUTE NZ_SKIP_CONNECTION_COUNT=$NZ_SKIP_CONNECTION_COUNT"

_cmd="sudo $env $NZ_AGENT_PATH/nezha-agent service -c "$path" install"
_cmd="sudo env $env $NZ_AGENT_PATH/nezha-agent service -c "$path" install"
if ! eval "$_cmd"; then
err "Install nezha-agent service failed"
exit 1
Expand Down

0 comments on commit c113988

Please sign in to comment.