diff options
-rwxr-xr-x | helpers/lh_chroot_hosts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts index 7858273d0..2795a5985 100755 --- a/helpers/lh_chroot_hosts +++ b/helpers/lh_chroot_hosts @@ -77,7 +77,12 @@ EOF # Creating lock file Create_lockfile .lock - if [ -f chroot/etc/hosts.orig ] + if [ -e config/chroot_local-includes/etc/hosts ] + then + # Copying local hosts + cp -a config/chroot_local-includes/etc/hosts chroot/etc/hosts + rm -f chroot/etc/hosts.orig + elif [ -f chroot/etc/hosts.orig ] then # Restore hosts file mv chroot/etc/hosts.orig chroot/etc/hosts |