Browse Source

Fix typos with config backups

master
Brielle Bruns 1 year ago
parent
commit
c6195a1517
2 changed files with 4 additions and 4 deletions
  1. +0
    -0
      backups/.gitkeep
  2. +4
    -4
      virt-install-cloud.sh

+ 0
- 0
backups/.gitkeep View File


+ 4
- 4
virt-install-cloud.sh View File

@@ -158,10 +158,10 @@ echo "Preparing ISO file required by cloud-init..."
xorriso -in_charset utf8 -outdev configuration.iso -volid cidata -joliet on -rockridge on -map output/user-data user-data -map output/meta-data meta-data

# keep a backup of the files for future reference
if [[ "${BACKUP_ISO_FILE}" == "yes" ]]; then
cp user-data ${hostname}.user-data
cp meta-data ${hostname}.meta-data
chmod 640 ${hostname}.user-data ${hostname}.meta-data
if [[ "${BACKUP_ISO_FILES}" == "yes" ]]; then
cp ${WORKING_DIR}/output/user-data ${WORKING_DIR}/backups/${hostname}.user-data
cp ${WORKING_DIR}/output/meta-data ${WORKING_DIR}/backups/${hostname}.meta-data
chmod 640 ${WORKING_DIR}/backups/${hostname}.user-data ${WORKING_DIR}/backups/${hostname}.meta-data
fi
# copy ISO into libvirt's directory
cp configuration.iso ${POOL_PATH}/${hostname}.${domain}.configuration.iso


Loading…
Cancel
Save