#!/bin/sh set -e # Am I a client? rc=0 chroot /target lliurex-version -t client && rc=1 chroot /target lliurex-version -t server && rc=1 if [ $rc -eq 1 ] ; then # Remove LDAP configuration files rm -f /target/etc/ldap/ldap.conf rm -f /target/etc/ldap.conf else echo "You are other flavour" fi exit 0