Skip to content

Commit

Permalink
fix: 激活虚拟环境
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Jan 7, 2025
1 parent 034d829 commit d7c14f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ENV S6_SERVICES_GRACETIME=30000 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SYNC_DISKS=1 \
HOME="/nt" \
PATH="${HOME}/.local/bin:${PATH}" \
TERM="xterm" \
LANG="C.UTF-8" \
TZ="Asia/Shanghai" \
Expand Down
1 change: 1 addition & 0 deletions docker/rootfs/etc/services.d/NAStool/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# shellcheck shell=bash

umask ${UMASK}
source ${WORKDIR}/.venv/bin/activate

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${NT_PORT}" \
Expand Down
1 change: 1 addition & 0 deletions docker/rootfs/etc/services.d/config_monitor/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/with-contenv bash

umask ${UMASK}
source ${WORKDIR}/.venv/bin/activate

exec \
cd ${WORKDIR} s6-setuidgid nt python config_monitor.py

0 comments on commit d7c14f9

Please sign in to comment.