Skip to content

Instantly share code, notes, and snippets.

@felix-orduz
Created May 25, 2015 15:49
Show Gist options
  • Select an option

  • Save felix-orduz/43277c9be445bed02743 to your computer and use it in GitHub Desktop.

Select an option

Save felix-orduz/43277c9be445bed02743 to your computer and use it in GitHub Desktop.
Generar Archivo de cache para apache
#/bin/bash
#$1 directorio a leer
#$2 directorio conf apache
if [ -d $1 ]; then
cd $1;
find $PWD -type f > $2/cachefileall.conf;
cd $2;
sed -i -e 's/^/CacheFile /' ./cachefileall.conf
else
echo "Directorio no existe";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment