Skip to content

Commit

Permalink
remove homedir for a shared install after installing read-write (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Jun 6, 2024
1 parent ce4ae06 commit 7dfc3da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/casa_distro/configuration_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def accept(self):
wait.show()
wait.setValue(0)
Qt.QApplication.instance().processEvents()
shared_install = not osp.exists('/casa/host/home')
thread = threading.Thread(
target=setup_user,
kwargs=dict(setup_dir='/casa/host', rw_install=True))
Expand All @@ -242,6 +243,9 @@ def accept(self):
Qt.QApplication.instance().processEvents()
wait.setValue(1)
Qt.QApplication.instance().processEvents()
if shared_install and osp.exists('/casa/host/home'):
# it's a shared install without a home dir: remove it again
shutil.rmtree('/casa/host/home')
wait.close()
del wait

Expand Down

0 comments on commit 7dfc3da

Please sign in to comment.