Give error if puppet binary is not found when running bootstrap-server.sh.
This commit is contained in:
parent
e491a66ef4
commit
5e9d0bbdde
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,13 @@
|
|||
|
||||
hostname -f | fgrep "." > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "error, command 'hostname -f' does not return domainname"
|
||||
echo "error, command 'hostname -f' does not return domainname" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
which puppet > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "error, puppet binary not in path" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue