FILES_SITE=(
style.css
scripts.js
sprites.svg
)
for i in ${FILES_SITE[@]};do
find /var/www/ -type f -name ${i} | while read -r path; do
// gzip -c -9 "$i" > "$i.gz";
// echo $path
done
done
# Take last modification date of newly downloaded CRL file as UTC time
_newcrl=`date -r $storedir/$crlfile +%s`
# Take last modification date of stored CRL file as UTC time
_oldcrl=`date -r $cadir/$crlfile +%s`
# When CRL file is missed, install fake file with modification date Jan 1 1970 00:00
if [ ! -f $cadir/$crlfile ]; then
touch -t 197001010000 $cadir/$crlfile
fi
# If file on CA store is never than file in their own store - we had have
# publish new CRL and must upload it to server
if [ $_newcrl -gt $_oldcrl ]; then
[тут мы что-то делаем]
fi