diff options
Diffstat (limited to 'etc/setup.d/20nssdatabases')
-rwxr-xr-x | etc/setup.d/20nssdatabases | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/etc/setup.d/20nssdatabases b/etc/setup.d/20nssdatabases index dbc04e17..6ea83c09 100755 --- a/etc/setup.d/20nssdatabases +++ b/etc/setup.d/20nssdatabases @@ -35,30 +35,30 @@ dup_nss() if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then if [ -n "$SETUP_NSSDATABASES" ]; then - if [ -f "$SETUP_NSSDATABASES" ]; then - while read db; do - if echo "$db" | egrep -q '^(#|$)' ; then - continue - fi + if [ -f "$SETUP_NSSDATABASES" ]; then + while read db; do + if echo "$db" | egrep -q '^(#|$)' ; then + continue + fi # Device and inode - dr=$(/usr/bin/stat --format="%d %i" "/etc/$db") - # This one can fail since it might not exist yet - dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :) + dr=$(/usr/bin/stat --format="%d %i" "/etc/$db") + # This one can fail since it might not exist yet + dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :) - # If the database inside and outside the chroot is the - # same, it's very likely that dup_nss would blank the - # database, so skip it. - if [ "$dr" = "$dc" ]; then - warn "$db files '/etc/$db' and '${CHROOT_PATH}/etc/$db' are the same file; skipping" - continue; - fi + # If the database inside and outside the chroot is the + # same, it's very likely that dup_nss would blank the + # database, so skip it. + if [ "$dr" = "$dc" ]; then + warn "$db files '/etc/$db' and '${CHROOT_PATH}/etc/$db' are the same file; skipping" + continue; + fi - dup_nss "$db" "${CHROOT_PATH}/etc/$db" - done < "$SETUP_NSSDATABASES" - else - fatal "nssdatabases file '$SETUP_NSSDATABASES' does not exist" - fi + dup_nss "$db" "${CHROOT_PATH}/etc/$db" + done < "$SETUP_NSSDATABASES" + else + fatal "nssdatabases file '$SETUP_NSSDATABASES' does not exist" + fi fi fi |