summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/add_storage.py
diff options
context:
space:
mode:
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: