|
@ -90,7 +90,7 @@ function ee_lib_check_fqdn() |
|
|
if [ "$EE_FQDN" != "" ];then |
|
|
if [ "$EE_FQDN" != "" ];then |
|
|
echo $EE_FQDN > /etc/hostname |
|
|
echo $EE_FQDN > /etc/hostname |
|
|
if [ "$EE_LINUX_DISTRO" == "Debian" ];then |
|
|
if [ "$EE_LINUX_DISTRO" == "Debian" ];then |
|
|
grep $EE_FQDN /etc/hosts &>> $EE_COMMAND_LOG |
|
|
grep $EE_FQDN /etc/hosts &>> $EE_INSTALL_LOG |
|
|
if [ $? -ne 0 ]; then |
|
|
if [ $? -ne 0 ]; then |
|
|
sed -i '1i\127.0.0.1 $EE_FQDN' /etc/hosts \ |
|
|
sed -i '1i\127.0.0.1 $EE_FQDN' /etc/hosts \ |
|
|
|| ee_lib_error "Unable setup hostname = " $? |
|
|
|| ee_lib_error "Unable setup hostname = " $? |
|
|