diff options
-rw-r--r-- | usr/src/lib/brand/lx/zone/lx_boot_zone_ubuntu.ksh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/brand/lx/zone/lx_boot_zone_ubuntu.ksh b/usr/src/lib/brand/lx/zone/lx_boot_zone_ubuntu.ksh index 97629094fd..d1423a38c1 100644 --- a/usr/src/lib/brand/lx/zone/lx_boot_zone_ubuntu.ksh +++ b/usr/src/lib/brand/lx/zone/lx_boot_zone_ubuntu.ksh @@ -33,7 +33,7 @@ safe_dir /etc/systemd # Populate resolv.conf setup files IFF we have resolvers information. resolvers=`zone_attr resolvers` -if [[ $? == 0 ]]; then +if [ -n "$resolvers" ]; then echo "# AUTOMATIC ZONE CONFIG" > $tmpfile _IFS=$IFS; IFS=,; for r in $resolvers; do @@ -41,7 +41,7 @@ if [[ $? == 0 ]]; then done >> $tmpfile IFS=$_IFS domain=`zone_attr dns-domain` - [[ $? == 0 ]] && echo "search $domain" >> $tmpfile + [ -n "$domain" ] && echo "search $domain" >> $tmpfile if [ -f $ZONEROOT/etc/systemd/resolved.conf ]; then cf=$ZONEROOT/etc/systemd/resolved.conf |