fix vm data permission issue, by ssh to domr, chmod to 644

This commit is contained in:
Edison Su 2011-05-02 11:01:10 -04:00
parent d8a4a5be52
commit cc485c021c
1 changed files with 1 additions and 2 deletions

View File

@ -46,9 +46,8 @@ copy_vm_data_file() {
local file=$4
local dataFile=$5
umask 022
chmod +r $dataFile
scp -P $PORT -o StrictHostKeyChecking=no -i $cert $dataFile root@$domrIp:/var/www/html/$folder/$vmIp/$file >/dev/null
ssh -p $PORT -o StrictHostKeyChecking=no -i $cert root@$domrIp "chmod 644 /var/www/html/$folder/$vmIp/$file" > /dev/null
return $?
}