@@ -291,13 +291,6 @@ if [ ! -e '/usr/bin/dirmngr' ]; then
291291 check_result $? " Can't install dirmngr"
292292fi
293293
294- # Checking screen
295- if [ ! -e ' /usr/bin/screen' ]; then
296- echo " Install missing screen..."
297- apt-get -y install screen >> $LOG
298- check_result $? " Can't install screen"
299- fi
300-
301294# Check if apt-transport-https is installed
302295if [ ! -e ' /usr/lib/apt/methods/https' ]; then
303296 echo " Install missing apt-transport-https..."
@@ -519,31 +512,27 @@ check_result $? 'apt-get upgrade failed'
519512# Define apt conf location
520513apt=/etc/apt/sources.list.d
521514
522- # Install Key Notification
523- echo
524- echo " Install required repository keys..."
525-
526515# Installing nginx repo
527516echo " deb http://nginx.org/packages/mainline/$VERSION / $codename nginx" \
528517 > $apt /nginx.list
529518wget --quiet http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
530- apt-key add /tmp/nginx_signing.key
519+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key >> $LOG
531520
532521if [ " $multiphp " = ' yes' ] || [ " $phpfpm " = ' yes' ]; then
533522 # Installing sury php repo
534523 echo " deb https://packages.sury.org/php/ $codename main" > $apt /php.list
535- wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key >> $LOG
536- apt-key add /tmp/php_signing.key
524+ wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
525+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key >> $LOG
537526fi
538527
539528# Installing MariaDB repo
540529echo " deb http://ams2.mirrors.digitalocean.com/mariadb/repo/10.3/$VERSION $codename main" > $apt /mariadb.list
541- apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
530+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 > /dev/null 2>&1
542531
543532# Installing hestia repo
544533echo " deb https://$RHOST / $codename main" > $apt /hestia.list
545534wget --quiet https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
546- apt-key add /tmp/deb_signing.key
535+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/deb_signing.key >> $LOG
547536
548537
549538# ----------------------------------------------------------#
0 commit comments