X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-replicate;fp=ud-replicate;h=f148bf6096a4127b35a5d979d53d8aa98ab2f9c7;hp=d1c0b24ca2519d7af07087cc69df3b59c8f8a398;hb=432f864af2347050e3dce2ff7002f04176468206;hpb=88a19a6e47a1c577474311d016ae5d26a72a4029 diff --git a/ud-replicate b/ud-replicate index d1c0b24..f148bf6 100755 --- a/ud-replicate +++ b/ud-replicate @@ -4,7 +4,7 @@ # Copyright (c) 2002-2003,2006 Ryan Murray # Copyright (c) 2004-2005 Joey Schulze # Copyright (c) 2008 Peter Palfrader -# Copyright (©) 2008 Stephen Gran +# Copyright (c) 2008 Stephen Gran # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -88,11 +88,11 @@ if [ -e ${HOST}/ssh-keys.tar.gz ]; then rsync -a --delete-after $tempdir/ userkeys/ fi +CHROOTS="" if [ -x /usr/bin/dchroot ]; then CHROOTS=`dchroot --listpaths` -fi -if [ -x /usr/bin/dchroot-dsa ]; then - CHROOTS=$(dchroot-dsa -i | grep Location | awk '{print $2}') +elif [ -x /usr/bin/dchroot-dsa ]; then + CHROOTS=$(dchroot-dsa -i | grep Location | awk '{print $2}') fi if [ -n "$CHROOTS" ]; then for c in $CHROOTS; do