1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1020: Removed uneeded permissions update. Removed wrong chars

This commit is contained in:
Ruben S. Montero 2011-12-27 23:56:14 +01:00
parent d736284dfb
commit 2bbc1cc118
4 changed files with 2 additions and 12 deletions

View File

@ -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 '{}' \;
}

View File

@ -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

View File

@ -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

View File

@ -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