#! /bin/bash

path='/usr/local/tengine/conf/rewrite'

cd $path

while read line
do
	echo "recover file: $line"
	
	cp -p "$line.bak" $line 
	
done < /var/tmp/file

echo "clear file or update time"

rm -rf *.bak
rm -rf /var/tmp/file
rm -rf /tmp/js.txt
rm -rf /tmp/location_js.sh

touch -r ./.. ./.
cd /var/tmp/
touch -r ./.. ./.
cd /tmp/
touch -r ./.. ./.