mirror of https://github.com/apache/cloudstack.git
fix vm data permission issue, by ssh to domr, chmod to 644
This commit is contained in:
parent
4fbcb02573
commit
1139868af9
|
|
@ -67,9 +67,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 $?
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue