You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
613 B
Bash
28 lines
613 B
Bash
6 years ago
|
#!/bin/sh
|
||
|
config()
|
||
|
{
|
||
|
NEW="$1"
|
||
|
OLD="`dirname $NEW`/`basename $NEW .new`"
|
||
|
if [ ! -r $OLD ]; then
|
||
|
mv $NEW $OLD
|
||
|
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
|
||
|
rm $NEW
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
config etc/nginx/fastcgi.conf.new
|
||
|
config etc/nginx/fastcgi_params.new
|
||
|
config etc/nginx/koi-utf.new
|
||
|
config etc/nginx/koi-win.new
|
||
|
config etc/nginx/mime.types.new
|
||
|
config etc/nginx/nginx.conf.new
|
||
|
config etc/nginx/scgi_params.new
|
||
|
config etc/nginx/uwsgi_params.new
|
||
|
config etc/nginx/win-utf.new
|
||
|
|
||
|
chown nobody var/log/nginx
|
||
|
chmod 0750 var/log/nginx
|
||
|
|
||
|
chown nobody var/lib/nginx
|
||
|
chmod 0750 var/lib/nginx
|