From f2dc5fad55ab76d693d9d5dd0dc2334128296129 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 7 Oct 2013 12:41:45 +0300 Subject: [PATCH] Separate repo config --- install/vst-install-ubuntu.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 226170a0a..7bfe95fe6 100644 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -228,24 +228,17 @@ if [ -z "$noupdate" ]; then fi # Install nginx repo -apt_list=/etc/apt/sources.list -check_nginx_repo=$(grep nginx.org $apt_list) -if [ -z "$check_nginx_repo" ]; then - echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" >> $apt_list - wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key - apt-key add /tmp/nginx_signing.key -fi +apt=/etc/apt/sources.list.d +echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" > $apt/nginx.list +wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key +apt-key add /tmp/nginx_signing.key # Install vesta repo -check_vesta_repo=$(grep $RHOST $apt_list) -if [ -z "$check_vesta_repo" ]; then - echo "deb http://$RHOST/$codename/ $codename vesta" >> $apt_list -fi -wget $CHOST/deb_signing.key -O deb_signing.key +echo "deb http://$RHOST/$codename/ $codename vesta" > $apt/vesta.list +wget $CHOST/deb_signing.key -O deb_signing.key apt-key add deb_signing.key - #----------------------------------------------------------# # Backups # #----------------------------------------------------------#