]> xenbits.xen.org Git - xenclient/build.git/commitdiff
[host installer] Fix config data path on target
authorChristopher Clark <christopher.clark@citrix.com>
Thu, 10 Sep 2009 19:58:53 +0000 (12:58 -0700)
committerChristopher Clark <christopher.clark@citrix.com>
Thu, 10 Sep 2009 19:58:53 +0000 (12:58 -0700)
target/generic/target_xenclient_installer_skeleton/install/stages/Preserve-install-data

index 331b2ef6d5ab7b45dc60e7e0547ba433ce951630..bc6450893ab80bf579ca4dea87c591884c8c8fa8 100755 (executable)
@@ -37,16 +37,18 @@ for PLACE in "${DATA_DIR}" "${LOG_DIR}" ; do
     mkdir -p "$(dirname ${PLACE})" || unwind_abort
     rm -rf "${PLACE}" >/dev/null 2>/dev/null
     [ ! -e "${PLACE}" ] || unwind_abort
-    mkdir -p "${PLACE}" || unwind_abort
 done
+mkdir -p "${LOG_DIR}" || unwind_abort
 
 # Write the success indicator here, so that it persists on the target
 # filesystem.
 echo "INSTALL='Success'" >"${INSTALL_STATUS_CONF}"
 
-cp -a "${INSTALL_DATA}" "${DATA_DIR}/" || unwind_abort
+# This will create the directory ${DATA_DIR}
+cp -a "${INSTALL_DATA}" "${DATA_DIR}" || unwind_abort
 
 # Preserve the installation/upgrade log:
+# This copies into the already existing directory ${LOG_DIR}
 cp -a "${INSTALLER_LOG}" "${LOG_DIR}/" || unwind_abort
 
 umount "${MOUNT_DIR}"