再试试修复 su 命令的环境变量问题。

This commit is contained in:
LamGC 2023-03-27 13:43:05 +08:00
parent c6c2a09bc8
commit fe906cb569
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -23,4 +23,4 @@ if [ $(id -u jenkins) -ne $UID ]; then
fi
echo "Starting agent..."
su - jenkins -c "/usr/local/bin/jenkins-agent $@"
su jenkins -m -c "/usr/local/bin/jenkins-agent $@"