diff --git a/dist/obsapisetup b/dist/obsapisetup index 1aa94a55c73..5ce23df811c 100755 --- a/dist/obsapisetup +++ b/dist/obsapisetup @@ -50,7 +50,7 @@ backenddir="$OBS_BASE_DIR" fi FQHOSTNAME=`hostname -f ` -if type ec2-public-hostname; then +if type -p ec2-public-hostname; then FQHOSTNAME=`ec2-public-hostname` fi