summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/add_storage.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-06 21:04:08 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-06 21:04:08 (GMT)
commitdb68aaa902f3d435d7e931834b6bebe670140b41 (patch)
tree7a377aafac007d44fb7a8a87d675247004bd1717 /abs/core/LinHES-system/add_storage.py
parent2140c6b49336ddaa530c2930b1c2bfb8d3792a93 (diff)
downloadlinhes_pkgbuild-db68aaa902f3d435d7e931834b6bebe670140b41.zip
linhes_pkgbuild-db68aaa902f3d435d7e931834b6bebe670140b41.tar.gz
linhes_pkgbuild-db68aaa902f3d435d7e931834b6bebe670140b41.tar.bz2
LinHES-system: add_storage.py: reconstruct_sg only chown and chmod for the new dir not the whole mount
Diffstat (limited to 'abs/core/LinHES-system/add_storage.py')
-rwxr-xr-xabs/core/LinHES-system/add_storage.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/LinHES-system/add_storage.py b/abs/core/LinHES-system/add_storage.py
index d97c96e..260421f 100755
--- a/abs/core/LinHES-system/add_storage.py
+++ b/abs/core/LinHES-system/add_storage.py
@@ -779,16 +779,17 @@ def reconstruct_storagegroups():
print " Creating directory structure:"
print " %s" %mount_point
for y in FS_LIST:
- print " %s" %y
new_dir="%s/%s" %(mount_point,y)
try:
os.stat(new_dir)
+ print " %s - exists" %y
except:
os.makedirs(new_dir)
- cmd="chown -R mythtv:mythtv /%s" %mount_point
+ cmd="chown -R mythtv:mythtv /%s" %new_dir
runcmd(cmd)
- cmd="chmod -R 775 /%s" %mount_point
+ cmd="chmod -R 775 /%s" %new_dir
runcmd(cmd)
+ print " %s - created" %y
print " Adding storage groups to DB"
if mmount is True: