openmamba-postinstall/main.py: fix for new location of mambabase

This commit is contained in:
Silvan Calarco 2022-07-09 13:34:46 +02:00
parent 6dd65027e7
commit 7aed8a9043

View File

@ -2,7 +2,7 @@
# encoding: utf-8
# === openmamba-postinstall module for Calamares - <http://github.com/calamares> ===
#
# Copyright 2015, Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright 2015-2022, Silvan Calarco <silvan.calarco@mambasoft.it>
#
import libcalamares
@ -26,7 +26,7 @@ def run():
libcalamares.utils.target_env_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ])
libcalamares.utils.target_env_call(['chmod', '0711', '/home/%s' % username ])
libcalamares.utils.target_env_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ])
libcalamares.utils.target_env_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
libcalamares.utils.target_env_call(['ln', '-s', '/usr/share/mambabase/mambabase-autostart.desktop',
'/home/%s/.config/autostart/mambabase.desktop' % username ])
libcalamares.utils.target_env_call(['chown', '-R', '%s:users' % username, '/home/%s' % username ])
libcalamares.utils.target_env_call(['chown', '-R', '%s:users' % username, '/home/%s/.config' % username ])