Skip to content

Commit d8d134d

Browse files
author
mike dupont
committed
using agent not eliza
1 parent 6c701f4 commit d8d134d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

rundocker.sh

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
#!/bin/bash
22
# this is the install script
3-
# install_script = "/opt/eliza/rundocker.sh"
3+
# install_script = "/opt/agent/rundocker.sh"
44
# called on boot.
55
pwd
66
ls -latr
77
. ./.env # for secrets
88
set -e # stop on any error
9-
export WORKSOURCE="/opt/eliza"
9+
export WORKSOURCE="/opt/agent"
1010
snap install aws-cli --classic
1111
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 916723593639.dkr.ecr.us-east-2.amazonaws.com
12-
adduser --disabled-password --gecos "" eliza --home "/home/eliza" || echo ignore
13-
git config --global --add safe.directory "/opt/eliza"
14-
git config --global --add safe.directory "/opt/eliza-memory"
12+
adduser --disabled-password --gecos "" agent --home "/home/agent" || echo ignore
13+
git config --global --add safe.directory "/opt/agent"
1514
cd "/opt/agent/" || exit 1 # "we need agent"
16-
git log -2 --patch | head -1000
15+
git log -1
1716
mkdir -p "/home/agent"
1817
mkdir -p "/var/agent/logs"
1918
chown -R agent:agent "/var/agent/" "/home/agent" "/opt/agent"
2019
mkdir -p "/var/run/agent/secrets/"
21-
mkdir -p "/home/agent/.cache/huggingface/hub"
2220

2321
## TURN OFF LOGGING
2422
set +x
@@ -29,9 +27,6 @@ echo "OPENAI_API_KEY=${OPENAI_KEY}" >> "/var/run/agent/secrets/env"
2927
set -x
3028
## TURN ON LOGGING
3129

32-
if ! grep -q "HF_HOME" "/var/run/agent/secrets/env"; then
33-
echo "HF_HOME=/home/agent/.cache/huggingface/hub" >> "/var/run/agent/secrets/env"
34-
fi
3530
if ! grep -q "^HOME" "/var/run/agent/secrets/env"; then
3631
echo "HOME=/home/agent" >> "/var/run/agent/secrets/env"
3732
fi

0 commit comments

Comments
 (0)