From 2bbc1cc1181bc4674c2db4365329c686d6793aad Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 27 Dec 2011 23:56:14 +0100 Subject: [PATCH] feature #1020: Removed uneeded permissions update. Removed wrong chars --- src/image_mad/remotes/fs/fsrc | 9 --------- src/image_mad/remotes/fs/mv | 1 - src/tm_mad/vmware/tm_clone.sh | 2 +- src/tm_mad/vmware/tm_mv.sh | 2 +- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/image_mad/remotes/fs/fsrc b/src/image_mad/remotes/fs/fsrc index 8cec0f0b05..4df7a005a3 100644 --- a/src/image_mad/remotes/fs/fsrc +++ b/src/image_mad/remotes/fs/fsrc @@ -92,12 +92,3 @@ function check_restricted { echo 0 } - -# Change the permissions of all the files inside directoriers (= VMware disks) -function fix_owner_perms { - find $IMAGE_REPOSITORY_PATH -type d \ - -mindepth 1 \ - -maxdepth 1 \ - -execdir chown \ - -R $SUDO_USER '{}' \; -} \ No newline at end of file diff --git a/src/image_mad/remotes/fs/mv b/src/image_mad/remotes/fs/mv index 2abcb29fe7..02290af989 100755 --- a/src/image_mad/remotes/fs/mv +++ b/src/image_mad/remotes/fs/mv @@ -65,7 +65,6 @@ esac if [ -d $DST ]; then exec_and_log "chmod 0770 $DST" - fix_owner_perms else exec_and_log "chmod 0660 $DST" fi diff --git a/src/tm_mad/vmware/tm_clone.sh b/src/tm_mad/vmware/tm_clone.sh index cd9cd874ae..aacc251c71 100755 --- a/src/tm_mad/vmware/tm_clone.sh +++ b/src/tm_mad/vmware/tm_clone.sh @@ -45,4 +45,4 @@ log "Cloning $SRC_PATH" exec_and_log "cp -r $SRC_PATH/* $DST_PATH" \ "Error copying $SRC to $DST" -fix_iso_file $DST_PATH +fix_iso $DST_PATH diff --git a/src/tm_mad/vmware/tm_mv.sh b/src/tm_mad/vmware/tm_mv.sh index 990abfca40..a03071bf0e 100755 --- a/src/tm_mad/vmware/tm_mv.sh +++ b/src/tm_mad/vmware/tm_mv.sh @@ -46,7 +46,7 @@ elif [ -L "$SRC_PATH/.disk" ]; then exec_and_log "mv $SRC_PATH/.disk $DST_PATH" elif [ "`is_disk $SRC_PATH`" = "0" ] ; then log "Moving $SRC_PATH" -    exec_and_log "mv $SRC_PATH $DST_PATH" + exec_and_log "mv $SRC_PATH $DST_PATH" elif [ -d $SRC_PATH ]; then log "Will not move, it is not saving a VM disk image" else