evobackup/chroot-update.sh
Benoit.S « Benpro » eb4c2c6f41 Refactoring of the code.
Evobackup is is now all in english and it is more flexible and easy to
install & configure.
2013-08-03 22:53:04 +02:00

11 lines
286 B
Bash
Executable file

#!/bin/sh
# Update all OpenSSH chroot.
BACKUP_PATH='/backup/jails'
for i in `ls -1 ${BACKUP_PATH}/*/lib/libnss_compat.so.2`; do
chrootdir=`echo $i | cut -d"/" -f1,2,3,4`
echo -n "Updating $chrootdir ..."
./chroot-bincopy.sh $chrootdir
echo "Done!"
done