mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-30 06:37:29 +00:00
再试试修复 su 命令的环境变量问题。
This commit is contained in:
parent
c6c2a09bc8
commit
fe906cb569
@ -23,4 +23,4 @@ if [ $(id -u jenkins) -ne $UID ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting agent..."
|
echo "Starting agent..."
|
||||||
su - jenkins -c "/usr/local/bin/jenkins-agent $@"
|
su jenkins -m -c "/usr/local/bin/jenkins-agent $@"
|
||||||
|
Loading…
Reference in New Issue
Block a user