Changeset 22f36fc


Ignore:
Timestamp:
Jul 10, 2013 8:07:34 AM (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
e961598
Parents:
39e56e7
Message:

Update enable_user_pefs, make it a bit faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/xtrafiles/local/bin/enable_user_pefs

    r39e56e7 r22f36fc  
    3333#umount ${USERHOMEDIR} 2>/dev/null 
    3434 
    35 cp -R ${USERHOMEDIR} ${USERHOMEDIR}.$$ 
     35tar cvf /usr/home/.USER.$$ -C ${USERHOMEDIR} . 2>/dev/null 
    3636rm -rf ${USERHOMEDIR}/* 
    3737chown ${USER}:${USER} ${USERHOMEDIR} 
     
    4242 
    4343mv ${USERHOMEDIR}/.pefs.db /tmp/.pefs.db.$$ 
    44 tar cvf - -C "${USERHOMEDIR}.$$" . 2>/dev/null | tar xvpf - -C "${USERHOMEDIR}" 2>/dev/null 
     44tar xvf /usr/home/.USER.$$ -C ${USERHOMEDIR} 2>/dev/null 
     45sync 
    4546chown -R ${USER}:${USER} ${USERHOMEDIR} 
    4647 
     
    5152 
    5253pefs mount ${USERHOMEDIR} ${USERHOMEDIR} 
    53 rm -rf "${USERHOMEDIR}.$$" 
    54  
     54rm /usr/home/.USER.$$  
    5555 
    5656# Make sure the DBDIR exists 
Note: See TracChangeset for help on using the changeset viewer.