mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Separate repo config
This commit is contained in:
parent
4c4433916c
commit
f2dc5fad55
1 changed files with 6 additions and 13 deletions
|
@ -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 #
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue