calamares: syntax fixes to openmamba-postinstall module
This commit is contained in:
parent
71a465cdd7
commit
06b0b6b7d8
@ -20,12 +20,12 @@ def run():
|
|||||||
# create user home
|
# create user home
|
||||||
username = libcalamares.globalstorage.value("username")
|
username = libcalamares.globalstorage.value("username")
|
||||||
|
|
||||||
libcalamares.utils.chroot_call(['cp', '-a', '/etc/skel', '/home/' . username ])
|
libcalamares.utils.chroot_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ])
|
||||||
libcalamares.utils.chroot_call(['chmod', '0711', '/home/' . username ])
|
libcalamares.utils.chroot_call(['chmod', '0711', '/home/%s' % username ])
|
||||||
libcalamares.utils.chroot_call(['mkdir', '-p', '/home/' . username . '/.config/autostart' ])
|
libcalamares.utils.chroot_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ])
|
||||||
libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
|
libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
|
||||||
'/home/' . username . '/.config/autostart/mambabase.desktop' ])
|
'/home/%s/.config/autostart/mambabase.desktop' % username ])
|
||||||
libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username ])
|
libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s' % username ])
|
||||||
libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username . '/.config' ])
|
libcalamares.utils.chroot_call(['chown', '-R ', '%s:users' % username, '/home/%s/.config' % username ])
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user