mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-03 02:55:57 +00:00
sudo su -- jenkins if running as root.
This commit is contained in:
@@ -21,7 +21,12 @@ util/check-dev-env
|
||||
#########################
|
||||
# Check the system env. #
|
||||
#########################
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
sudo su -- jenkins
|
||||
fi
|
||||
|
||||
env
|
||||
|
||||
if [ -z "$HOME" ]; then
|
||||
if [ -d "/home/jenkins" ]; then
|
||||
HOME="/home/jenkins"
|
||||
|
Reference in New Issue
Block a user