File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -228,24 +228,17 @@ if [ -z "$noupdate" ]; then
228228fi
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
245239apt-key add deb_signing.key
246240
247241
248-
249242# ----------------------------------------------------------#
250243# Backups #
251244# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments