#!/bin/bash
for folder in `find . -maxdepth 2 -mindepth 2 -type d | grep -v 'trash\|temp\|tmp\|git\|common' | grep 'chat'`;
do
  cd $folder;
  echo $folder
  cat .env
  if ! grep APP .env ; then
    echo "Adding APP env"
    echo export APP=rocketchat >> .env
  else
    echo "Skipping..."
  fi
  cd ../..;
done
