summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2024-01-27 04:26:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2024-01-27 04:26:13 (GMT)
commit3b748fcf21738ba0f14778623d662a0dd0f3f5bf (patch)
treeebb78772965ab19d97a3af14c1849cb628621f5f
parent23d612e90c5f94be4de351ccdfffc00a6a84a352 (diff)
downloadlinhes_pkgbuild-3b748fcf21738ba0f14778623d662a0dd0f3f5bf.zip
linhes_pkgbuild-3b748fcf21738ba0f14778623d662a0dd0f3f5bf.tar.gz
linhes_pkgbuild-3b748fcf21738ba0f14778623d662a0dd0f3f5bf.tar.bz2
linhes-system: add_storage.py: move mythdb call after checking sg selection
-rwxr-xr-xlinhes/linhes-system/add_storage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/linhes/linhes-system/add_storage.py b/linhes/linhes-system/add_storage.py
index 8821016..cc6feb5 100755
--- a/linhes/linhes-system/add_storage.py
+++ b/linhes/linhes-system/add_storage.py
@@ -675,7 +675,7 @@ def main(scan_only, destruction, no_mount, install_call, dir_sg):
if len(process_list) > 0:
- DB = MythDB()
+ #DB = MythDB()
host=gethostname()
for y in process_list:
system_drive_list.remove(y)
@@ -714,6 +714,7 @@ def main(scan_only, destruction, no_mount, install_call, dir_sg):
i.symlink_disk()
if dir_sg == True:
+ DB = MythDB()
i.add_sg(DB,host,SG_MAP)
print("-----")