Skip to content

Commit 7b03aac

Browse files
committed
nginx section before apache
1 parent d02de6c commit 7b03aac

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

install/vst-install.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,18 @@ sed -i 's/#allowsftp/allowsftp/' /etc/rssh.conf
458458
sed -i 's/#allowrsync/allowrsync/' /etc/rssh.conf
459459
chmod 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
462474
wget $CHOST/$VERSION/httpd.conf -O /etc/httpd/conf/httpd.conf
463475
wget $CHOST/$VERSION/httpd-status.conf -O /etc/httpd/conf.d/status.conf
@@ -484,18 +496,6 @@ if [ "$?" -ne 0 ]; then
484496
exit 1
485497
fi
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
500500
wget $CHOST/$VERSION/vsftpd.conf -O /etc/vsftpd/vsftpd.conf
501501
chkconfig vsftpd on

0 commit comments

Comments
 (0)