mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-18 16:40:23 +00:00
Set HOME=/home/jenkins if not defined and that dir exists.
This commit is contained in:
@@ -16,9 +16,22 @@ set -x
|
||||
##################################
|
||||
# Check for needed Perl modules. #
|
||||
##################################
|
||||
env
|
||||
util/check-dev-env
|
||||
|
||||
#########################
|
||||
# Check the system env. #
|
||||
#########################
|
||||
env
|
||||
if [ -z "$HOME" ]; then
|
||||
if [ -d "/home/jenkins" ]; then
|
||||
HOME="/home/jenkins"
|
||||
echo "\$HOME not defined, using $HOME"
|
||||
else
|
||||
echo "\$HOME not defined and /home/jenkins does not exist"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#####################################
|
||||
# Install barebones MySQL binaries. #
|
||||
#####################################
|
||||
|
Reference in New Issue
Block a user