nginx updatescript

Habe mal eben ein nginx updatescript gebastelt:

Momentane Version von meinem nginx srv: 1.1.2 😉

cp /etc/nginx/conf/nginx.conf /etc/nginx/conf/nginx.conf.b
cp /etc/nginx/conf/nginx.conf /etc/nginx/conf/nginx.conf.b
cp /etc/nginx/conf/nginx.conf /etc/nginx/conf/nginx.conf.b
rm /usr/sbin/nginx
svn co svn://svn.nginx.org/nginx/trunk
cd trunk
mv auto/configure .
chmod 777 configure
./configure –user=http –group=http –with-cpu-opt=amd64 –with-http_image_filter_module –with-http_geoip_module –with-http_xslt_module –with-rtsig_module –with-poll_module –with-http_sub_module –with-http_dav_module –with-http_flv_module –with-http_gzip_static_module –with-http_random_index_module –with-http_secure_link_module –with-http_degradation_module –with-http_stub_status_module –with-file-aio –with-ipv6 –with-http_realip_module –with-http_addition_module –with-select_module –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/conf/nginx.sh –error-log-path=/dev/null –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –with-http_ssl_module –with-libatomic –with-debug –without-mail_pop3_module –without-mail_imap_module –without-mail_smtp_module
make
make install
cd .. && rm -R trunk configure
cp /etc/nginx/conf/nginx.conf.b /etc/nginx/conf/nginx.conf
rm /usr/sbin/nginx.old
/etc/rc.d/nginx reload

Speichere in deinen Favoriten diesen permalink.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert