%PDF- %PDF-
Direktori : /data/old/usr/local/bin/ |
Current File : //data/old/usr/local/bin/brotlidirdaily |
#!/usr/bin/env bash #set -x OLDIFS=$IFS IFS=$'\n' for FILE in $(find . -type f -mtime -1 \( -iname '*.css' -o -iname '*.js' -o -iname '*.svg' -o -iname '*.json' -o -iname '*.txt' -o -iname '*.htm' -o -iname '*.html' -o -iname '*.xml' \) | grep -v heureka.xml | grep -v 'varak.net/shop.varak.net/import/vstupy' ); do echo -n "Compressing ${FILE}..." /usr/local/bin/brotli ${FILE} --force -o ${FILE}.br; /usr/bin/gzip -9 < ${FILE} > ${FILE}.gz; chown nginx:nginx ${FILE}.gz chown nginx:nginx ${FILE}.br echo "done." done IFS=$OLDIFS