Create or overwrite on first write to installer.conf
authorWilliam Douglas <william.douglas@intel.com>
Tue, 30 Jul 2013 18:05:29 +0000 (11:05 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Tue, 30 Jul 2013 18:05:29 +0000 (11:05 -0700)
Ensure that there isn't anything left over in the installer.conf file
before the installer-conf-creator script runs by not using append for
the first write.

This removes implicit assumption that there is not a installer.conf
in place before the installer-conf-creator script runs making things
a little safer.

Signed-off-by: William Douglas <william.douglas@intel.com>
scripts/installer-conf-creator

index f28a1f3..639722e 100644 (file)
@@ -2,7 +2,7 @@
 
 DEST=/etc/installer.conf
 
-echo INSTALLERFW_DISTRO_NAME=\"${INSTALLERFW_DISTRO_NAME}\" >> $DEST
+echo INSTALLERFW_DISTRO_NAME=\"${INSTALLERFW_DISTRO_NAME}\" > $DEST
 echo INSTALLERFW_KERNEL_OPTS=\"${INSTALLERFW_KERNEL_OPTS}\" >> $DEST
 echo INSTALLERFW_MOUNT_PREFIX=\"${INSTALLERFW_MOUNT_PREFIX}\" >> $DEST
 echo INSTALLERFW_INSTALLER_NAME=\"${INSTALLERFW_INSTALLER_NAME}\" >> $DEST