#! /bin/bash ## movevbcnw7.conf ## It moves w7_32.vdi file from /share/apps/VBtemplate/ (which is physicall located in the frontend's harddisk) ## to /state/partition1/VBlocal/ (which is physicall located locally at a compute node's harddisk). ## Fire this code in local node's directory /root/configrepo by ## sh /share/apps/configrepo/movevbcnw7.conf ## Must run as su ############################################################ ### Should check if /state/partition1/VBlocal/w7_32.vdi already exist ### If it does, it is needless to run this code to move the *.vdi file mkdir /state/partition1/VBlocal cd /state/partition1/VBlocal cp /share/apps/VBtemplate/w7_32.vdi /state/partition1/VBlocal/. chmod 777 /state/partition1/VBlocal/w7_32.vdi chown root:users /state/partition1/VBlocal/w7_32.vdi #### Finished ###### echo -e "\nMessage from the author :\nCOMPLETE!!! \n"