[PC-BSD Commits] r4818 - pcbsd/trunk/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Thu Oct 29 13:27:12 PST 2009


Author: kris
Date: 2009-10-29 14:27:12 -0700 (Thu, 29 Oct 2009)
New Revision: 4818

Modified:
   pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
Log:

Fixed small typo in sed commands, leave proper .bak file



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2009-10-29 21:22:35 UTC (rev 4817)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2009-10-29 21:27:12 UTC (rev 4818)
@@ -200,7 +200,7 @@
   # Set the hostname now
   echo_log "Setting hostname: ${HOSTNAME}"
   echo "hostname=\"${HOSTNAME}\"" >> ${FSMNT}/etc/rc.conf
-  sed -i -e "s|my.domain|${HOSTNAME} ${HOSTNAME}|g" ${FSMNT}/etc/hosts
+  sed -e "s|my.domain|${HOSTNAME} ${HOSTNAME}|g" -i .bak ${FSMNT}/etc/hosts
 
 };
 



More information about the Commits mailing list