Mercurial > hg > Applications > virsh-wrapper
changeset 8:b2e2eec87764
chown image directory
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Nov 2012 16:15:15 +0900 |
parents | bff4054ed58f |
children | ea51e779b381 |
files | newvm.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/newvm.py Tue Nov 13 11:14:34 2012 +0900 +++ b/newvm.py Tue Nov 13 16:15:15 2012 +0900 @@ -45,6 +45,7 @@ ie_mkdir1('/var/log/libvirt/qemu/'+dir) ie_mkdir1('/var/run/libvirt/qemu/'+dir) ie_mkdir1('/var/lib/libvirt/qemu/'+dir) + os.chown('/media/fcs/'+dir,os.getlogin(),-1) parser = OptionParser(); parser.add_option("-n", "--name", dest="name",