mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 05:55:38 +08:00
Fix subscription git clone failure by setting TMPDIR
Set TMPDIR=/tmp before git clone operations to fix "unable to get random bytes for temporary file" error in Docker environments with restricted system calls (e.g., Synology NAS). Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
4fd89ab155
commit
7deab5d18e
|
|
@ -258,8 +258,11 @@ git_clone_scripts() {
|
|||
|
||||
set_proxy "$proxy"
|
||||
|
||||
# Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments
|
||||
export TMPDIR=/tmp
|
||||
git clone -q --depth=1 $part_cmd $url $dir
|
||||
exit_status=$?
|
||||
unset TMPDIR
|
||||
|
||||
unset_proxy
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user