Skip to content

Commit f2dc5fa

Browse files
committed
Separate repo config
1 parent 4c44339 commit f2dc5fa

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

install/vst-install-ubuntu.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,17 @@ if [ -z "$noupdate" ]; then
228228
fi
229229

230230
# Install nginx repo
231-
apt_list=/etc/apt/sources.list
232-
check_nginx_repo=$(grep nginx.org $apt_list)
233-
if [ -z "$check_nginx_repo" ]; then
234-
echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" >> $apt_list
235-
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
236-
apt-key add /tmp/nginx_signing.key
237-
fi
231+
apt=/etc/apt/sources.list.d
232+
echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" > $apt/nginx.list
233+
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
234+
apt-key add /tmp/nginx_signing.key
238235

239236
# Install vesta repo
240-
check_vesta_repo=$(grep $RHOST $apt_list)
241-
if [ -z "$check_vesta_repo" ]; then
242-
echo "deb http://$RHOST/$codename/ $codename vesta" >> $apt_list
243-
fi
244-
wget $CHOST/deb_signing.key -O deb_signing.key
237+
echo "deb http://$RHOST/$codename/ $codename vesta" > $apt/vesta.list
238+
wget $CHOST/deb_signing.key -O deb_signing.key
245239
apt-key add deb_signing.key
246240

247241

248-
249242
#----------------------------------------------------------#
250243
# Backups #
251244
#----------------------------------------------------------#

0 commit comments

Comments
 (0)