diff --git a/calamares/openmamba-postinstall/main.py b/calamares/openmamba-postinstall/main.py index d51399d..f27172c 100644 --- a/calamares/openmamba-postinstall/main.py +++ b/calamares/openmamba-postinstall/main.py @@ -20,12 +20,12 @@ def run(): # create user home username = libcalamares.globalstorage.value("username") - libcalamares.utils.chroot_call(['cp', '-a', '/etc/skel', '/home/' . username ]) - libcalamares.utils.chroot_call(['chmod', '0711', '/home/' . username ]) - libcalamares.utils.chroot_call(['mkdir', '-p', '/home/' . username . '/.config/autostart' ]) + libcalamares.utils.chroot_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ]) + libcalamares.utils.chroot_call(['chmod', '0711', '/home/%s' % username ]) + libcalamares.utils.chroot_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ]) libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop', - '/home/' . username . '/.config/autostart/mambabase.desktop' ]) - libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username ]) - libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username . '/.config' ]) + '/home/%s/.config/autostart/mambabase.desktop' % username ]) + libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s' % username ]) + libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s/.config' % username ]) return None