From c478dd7c78f3ff84affc90825f951a44fd8616c6 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Wed, 24 Sep 2014 09:51:32 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtinst.sh b/rtinst.sh index 147fba4..2444735 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -143,7 +143,7 @@ echo "require_ssl_reuse=NO" | sudo tee -a /etc/vsftpd.conf > /dev/null echo "listen_port=$ftpport" | sudo tee -a /etc/vsftpd.conf > /dev/null echo "ssl_ciphers=HIGH" | sudo tee -a /etc/vsftpd.conf > /dev/null -sudo openssl req -x509 -nodes -days 365 -subj /CN=$SERVERIP -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem +sudo openssl req -x509 -nodes -days 3650 -subj /CN=$SERVERIP -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem sudo service vsftpd restart @@ -216,7 +216,7 @@ sudo apt-get -y install ffmpeg sudo apt-get -y install nginx-full apache2-utils sudo htpasswd -c -b /var/www/rutorrent/.htpasswd $LOGNAME $WEBPASS -sudo openssl req -x509 -nodes -days 365 -subj /CN=$SERVERIP -newkey rsa:2048 -keyout /etc/ssl/ruweb.key -out /etc/ssl/ruweb.crt +sudo openssl req -x509 -nodes -days 3650 -subj /CN=$SERVERIP -newkey rsa:2048 -keyout /etc/ssl/ruweb.key -out /etc/ssl/ruweb.crt sudo perl -pi -e "s/user www-data;/user www-data www-data;/g" /etc/nginx/nginx.conf sudo perl -pi -e "s/worker_processes 4;/worker_processes 1;/g" /etc/nginx/nginx.conf