Separate repo config

This commit is contained in:
Serghey Rodin 2013-10-07 12:41:45 +03:00
commit f2dc5fad55

View file

@ -228,24 +228,17 @@ if [ -z "$noupdate" ]; then
fi fi
# Install nginx repo # Install nginx repo
apt_list=/etc/apt/sources.list apt=/etc/apt/sources.list.d
check_nginx_repo=$(grep nginx.org $apt_list) echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" > $apt/nginx.list
if [ -z "$check_nginx_repo" ]; then wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" >> $apt_list apt-key add /tmp/nginx_signing.key
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
apt-key add /tmp/nginx_signing.key
fi
# Install vesta repo # Install vesta repo
check_vesta_repo=$(grep $RHOST $apt_list) echo "deb http://$RHOST/$codename/ $codename vesta" > $apt/vesta.list
if [ -z "$check_vesta_repo" ]; then wget $CHOST/deb_signing.key -O deb_signing.key
echo "deb http://$RHOST/$codename/ $codename vesta" >> $apt_list
fi
wget $CHOST/deb_signing.key -O deb_signing.key
apt-key add deb_signing.key apt-key add deb_signing.key
#----------------------------------------------------------# #----------------------------------------------------------#
# Backups # # Backups #
#----------------------------------------------------------# #----------------------------------------------------------#