chore: do not delete blend user during postinst

This commit is contained in:
Rudra Saraswat 2024-02-14 13:20:00 +05:30
parent e4192f57ae
commit 53d7902487
2 changed files with 2 additions and 31 deletions

View file

@ -133,10 +133,9 @@ def inst_networking(config):
def inst_users(config):
exec_chroot(['bash', '-c', 'userdel -r blend &>/dev/null'])
for home_dir in os.listdir('/home'):
exec(['rm', '-rf', '/home/' + home_dir])
if not home_dir == 'blend':
exec(['rm', '-rf', '/home/' + home_dir])
# Add users
for user in config['users']: