File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -458,6 +458,18 @@ sed -i 's/#allowsftp/allowsftp/' /etc/rssh.conf
458458sed -i ' s/#allowrsync/allowrsync/' /etc/rssh.conf
459459chmod 755 /usr/bin/rssh
460460
461+ # Nginx configuration
462+ rm -f /etc/nginx/conf.d/* .conf
463+ wget $CHOST /$VERSION /nginx.conf -O /etc/nginx/nginx.conf
464+ wget $CHOST /$VERSION /nginx-status.conf -O /etc/nginx/conf.d/status.conf
465+ touch /etc/nginx/conf.d/vesta.conf
466+ chkconfig nginx on
467+ service nginx start
468+ if [ " $? " -ne 0 ]; then
469+ echo " Error: nginx start failed"
470+ exit 1
471+ fi
472+
461473# Apache configuration
462474wget $CHOST /$VERSION /httpd.conf -O /etc/httpd/conf/httpd.conf
463475wget $CHOST /$VERSION /httpd-status.conf -O /etc/httpd/conf.d/status.conf
@@ -484,18 +496,6 @@ if [ "$?" -ne 0 ]; then
484496 exit 1
485497fi
486498
487- # Nginx configuration
488- rm -f /etc/nginx/conf.d/* .conf
489- wget $CHOST /$VERSION /nginx.conf -O /etc/nginx/nginx.conf
490- wget $CHOST /$VERSION /nginx-status.conf -O /etc/nginx/conf.d/status.conf
491- touch /etc/nginx/conf.d/vesta.conf
492- chkconfig nginx on
493- service nginx start
494- if [ " $? " -ne 0 ]; then
495- echo " Error: nginx start failed"
496- exit 1
497- fi
498-
499499# Vsftpd configuration
500500wget $CHOST /$VERSION /vsftpd.conf -O /etc/vsftpd/vsftpd.conf
501501chkconfig vsftpd on
You can’t perform that action at this time.
0 commit comments