mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 08:56:34 +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. #
|
# Check for needed Perl modules. #
|
||||||
##################################
|
##################################
|
||||||
env
|
|
||||||
util/check-dev-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. #
|
# Install barebones MySQL binaries. #
|
||||||
#####################################
|
#####################################
|
||||||
|
Reference in New Issue
Block a user