find $APP_LAYER_CONFIG_DIR -name nightly-settings.xml -delete
find $APP_LAYER_CONFIG_DIR -name local-settings.xml -delete
-# FIXME: Need to add an action here to copy each instance of the
-# file settings.xml, found in each App layer tenant folder, to
-# a file named local-settings.xml files in each of those folder(s)
+# This command was tested with Fedora Linux 10; other Linux distros and other
+# Unix-like operating systems may have slight variations on 'execdir', etc.
+echo "Copying settings.xml files to local-settings.xml for each tenant ..."
+find $APP_LAYER_CONFIG_DIR/tenants -mindepth 1 -maxdepth 1 -type d \
+ -execdir /bin/cp -p '{}'/settings.xml '{}'/local-settings.xml \;
echo "Removing services JAR files ..."
rm -Rf $CATALINA_LIB_DIR/cspace-services-authz.jar