##// END OF EJS Templates
Fixed: Remove empty .ssh directories
drtyhlpr -
r124:b9b25fc2967a
parent child
Show More
@@ -508,6 +508,16 rm -f "${R}/initrd.img"
508 rm -f "${R}/vmlinuz"
508 rm -f "${R}/vmlinuz"
509 rm -f "${R}${QEMU_BINARY}"
509 rm -f "${R}${QEMU_BINARY}"
510
510
511 # Remove root .ssh directory if it's empty
512 if [ -d "${R}/root/.ssh" ] ; then
513 rmdir --ignore-fail-on-non-empty "${R}/root/.ssh"
514 fi
515
516 # Remove $USER_NAME .ssh directory if it's empty
517 if [ -d "${R}/home/${USER_NAME}/.ssh" ] ; then
518 rmdir --ignore-fail-on-non-empty "${R}/home/${USER_NAME}/.ssh"
519 fi
520
511 # Calculate size of the chroot directory in KB
521 # Calculate size of the chroot directory in KB
512 CHROOT_SIZE=$(expr `du -s "${R}" | awk '{ print $1 }'`)
522 CHROOT_SIZE=$(expr `du -s "${R}" | awk '{ print $1 }'`)
513
523
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant