fix(hermesagent): restore setsid to suppress installer TUI; remove redundant EnvironmentFile for .env
This commit is contained in:
@@ -45,12 +45,11 @@ if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Installing Hermes Agent"
|
msg_info "Installing Hermes Agent"
|
||||||
(
|
$STD setsid --wait env \
|
||||||
set -a
|
HOME=/home/hermes \
|
||||||
source /etc/default/hermes
|
PATH=/home/hermes/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
set +a
|
NODE_OPTIONS=${NODE_OPTIONS} \
|
||||||
$STD bash <(curl -fsSL https://hermes-agent.nousresearch.com/install.sh) --skip-setup --hermes-home /home/hermes/.hermes --dir /home/hermes/.hermes/hermes-agent
|
bash <(curl -fsSL https://hermes-agent.nousresearch.com/install.sh) --skip-setup --hermes-home /home/hermes/.hermes --dir /home/hermes/.hermes/hermes-agent
|
||||||
)
|
|
||||||
chown -R hermes:hermes /home/hermes
|
chown -R hermes:hermes /home/hermes
|
||||||
chmod 750 /home/hermes
|
chmod 750 /home/hermes
|
||||||
chmod 700 /home/hermes/.hermes
|
chmod 700 /home/hermes/.hermes
|
||||||
@@ -91,7 +90,6 @@ UMask=0077
|
|||||||
WorkingDirectory=/home/hermes
|
WorkingDirectory=/home/hermes
|
||||||
ExecStart=/home/hermes/.local/bin/hermes dashboard --host 127.0.0.1 --port 9119 --no-open
|
ExecStart=/home/hermes/.local/bin/hermes dashboard --host 127.0.0.1 --port 9119 --no-open
|
||||||
EnvironmentFile=/etc/default/hermes
|
EnvironmentFile=/etc/default/hermes
|
||||||
EnvironmentFile=/home/hermes/.hermes/.env
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
ProtectProc=invisible
|
ProtectProc=invisible
|
||||||
|
|||||||
Reference in New Issue
Block a user