Commit 06b0b6b7d831b698aeb467ec1cb5ec57541c1175

Authored by Silvan Calarco
1 parent 71a465cdd7
Exists in master

calamares: syntax fixes to openmamba-postinstall module

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

calamares/openmamba-postinstall/main.py
... ... @@ -20,13 +20,13 @@
20 20 # create user home
21 21 username = libcalamares.globalstorage.value("username")
22 22  
23   - libcalamares.utils.chroot_call(['cp', '-a', '/etc/skel', '/home/' . username ])
24   - libcalamares.utils.chroot_call(['chmod', '0711', '/home/' . username ])
25   - libcalamares.utils.chroot_call(['mkdir', '-p', '/home/' . username . '/.config/autostart' ])
  23 + libcalamares.utils.chroot_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ])
  24 + libcalamares.utils.chroot_call(['chmod', '0711', '/home/%s' % username ])
  25 + libcalamares.utils.chroot_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ])
26 26 libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
27   - '/home/' . username . '/.config/autostart/mambabase.desktop' ])
28   - libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username ])
29   - libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username . '/.config' ])
  27 + '/home/%s/.config/autostart/mambabase.desktop' % username ])
  28 + libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s' % username ])
  29 + libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s/.config' % username ])
30 30  
31 31 return None