evobackup/chroot-update.sh
Benoit.S « Benpro » 580c352b4f Refactoring of the code.
Evobackup is is now all in english and it is more flexible and easy to
install & configure.
2014-03-19 11:54:39 +01: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