diff --git a/python/casa_distro/configuration_gui.py b/python/casa_distro/configuration_gui.py index 11e8a59c..82845aa0 100644 --- a/python/casa_distro/configuration_gui.py +++ b/python/casa_distro/configuration_gui.py @@ -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)) @@ -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