Skip to content

Commit 32c8603

Browse files
committed
fix: bug
1 parent 04453a2 commit 32c8603

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ RUN set -e; \
1919
mkdir -p /var/log/aio /etc/aio; \
2020
chmod 0755 /var/log/aio /etc/aio; \
2121
LATEST=$(curl -sL https://api.github.com/repos/uerax/all-in-one-bot/releases/latest | grep "tag_name" | cut -d '"' -f 4); \
22-
curl -L "https://github.com/uerax/all-in-one-bot/releases/download/$LATEST/$AIO_BIN" -o /var/lib/aio; \
23-
chmod +x /var/lib/aio; \
22+
curl -L "https://github.com/uerax/all-in-one-bot/releases/download/$LATEST/$AIO_BIN" -o /usr/local/bin/aio; \
23+
chmod +x /usr/local/bin/aio; \
2424
if [ ! -f /etc/aio/all-in-one-bot.yml ]; then \
2525
curl -L "https://raw.githubusercontent.com/uerax/all-in-one-bot/master/all-in-one-bot.yml" -o /etc/aio/all-in-one-bot.yml; \
2626
echo "Configuration downloaded. Please edit /etc/aio/all-in-one-bot.yml and restart the container."; \
@@ -31,4 +31,4 @@ VOLUME ["/var/log/aio"]
3131

3232
ENV TZ=Asia/Shanghai
3333

34-
CMD ["/var/lib/aio", "-c", "/etc/aio/all-in-one-bot.yml"]
34+
CMD ["/usr/local/bin/aio", "-c", "/etc/aio/all-in-one-bot.yml"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
networks:
1616
- botnet
1717
healthcheck:
18-
test: ["CMD-SHELL", "test -x /var/lib/aio || exit 1"]
18+
test: ["CMD-SHELL", "test -x /usr/local/bin/aio || exit 1"]
1919
interval: 30s
2020
timeout: 10s
2121
retries: 3

0 commit comments

Comments
 (0)