diff options
Diffstat (limited to 'helpers/lh_chroot_hostname')
-rwxr-xr-x | helpers/lh_chroot_hostname | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hostname b/helpers/lh_chroot_hostname index c6ceecb..2df0aa2 100755 --- a/helpers/lh_chroot_hostname +++ b/helpers/lh_chroot_hostname @@ -73,7 +73,10 @@ EOF Echo_message "Deconfiguring file /bin/hostname" # Restore hostname file - mv chroot/bin/hostname.orig chroot/bin/hostname + if [ -e chroot/bin/hostname.orig ] + then + mv chroot/bin/hostname.orig chroot/bin/hostname + fi # Removing stage file rm -f .stage/chroot_hostname |