summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hostname
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_hostname')
-rwxr-xr-xhelpers/lh_chroot_hostname5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hostname b/helpers/lh_chroot_hostname
index c6ceecb0a..2df0aa2ac 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