From a5f0f096d408752cd508dff97a9a9fbd683b7fce Mon Sep 17 00:00:00 2001 From: enoch85 Date: Tue, 14 Jun 2016 18:05:08 +0200 Subject: [PATCH] silence apt-get update --- nextcloud_install_production.sh | 8 ++++---- nextcloud_update.sh | 2 +- static/install-redis-php-7.sh | 4 ++-- static/phpmyadmin_install_ubuntu16.sh | 2 +- static/redis-server-ubuntu16.sh | 4 ++-- testing/nextcloud-startup-script.sh | 2 +- testing/nextcloud_install_testing.sh | 6 +++--- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 4071489a..4859d11b 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -167,7 +167,7 @@ else fi # Update system -apt-get update +apt-get update -q2 # Set locales apt-get install language-pack-en-base -y @@ -227,7 +227,7 @@ sudo hostnamectl set-hostname nextcloud service apache2 restart # Install PHP 7.0 -apt-get update +apt-get update -q2 apt-get install -y \ php \ php-mcrypt \ @@ -239,7 +239,7 @@ apt-get install -y \ wget -nv $NCREPOKEY -O Release.key apt-key add - < Release.key && rm Release.key sh -c "echo 'deb $NCREPO/ /' >> /etc/apt/sources.list.d/nextcloud.list" -apt-get update && apt-get install nextcloud -y +apt-get update -q2 && apt-get install nextcloud -y mkdir -p $NCDATA @@ -397,7 +397,7 @@ apt-get install -y zip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam # Install Webmin sed -i '$a deb http://download.webmin.com/download/repository sarge contrib' /etc/apt/sources.list wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add - -apt-get update +apt-get update -q2 apt-get install webmin -y # Add extra security diff --git a/nextcloud_update.sh b/nextcloud_update.sh index ba509011..9a56a311 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -26,7 +26,7 @@ else fi # System Upgrade -sudo apt-get update +sudo apt-get update -q2 sudo aptitude full-upgrade -y sudo -u www-data php $NCPATH/occ upgrade diff --git a/static/install-redis-php-7.sh b/static/install-redis-php-7.sh index 95b4e214..63ca87c6 100644 --- a/static/install-redis-php-7.sh +++ b/static/install-redis-php-7.sh @@ -18,7 +18,7 @@ else mkdir -p $SCRIPTS fi # Get packages to be able to install Redis -apt-get update && sudo apt-get install build-essential -q -y +apt-get update -q2 && sudo apt-get install build-essential -q -y apt-get install tcl8.5 -q -y apt-get install php-pear php7.0-dev -q -y @@ -154,7 +154,7 @@ apt-get purge -y \ make \ manpages-dev -apt-get update +apt-get update -q2 apt-get autoremove -y apt-get autoclean diff --git a/static/phpmyadmin_install_ubuntu16.sh b/static/phpmyadmin_install_ubuntu16.sh index a4dfd984..6b560f7d 100644 --- a/static/phpmyadmin_install_ubuntu16.sh +++ b/static/phpmyadmin_install_ubuntu16.sh @@ -41,7 +41,7 @@ echo 'phpmyadmin phpmyadmin/app-password-confirm password $PW_FILE' | debconf-se echo 'phpmyadmin phpmyadmin/mysql/admin-pass password $PW_FILE' | debconf-set-selections echo 'phpmyadmin phpmyadmin/mysql/app-pass password $PW_FILE' | debconf-set-selections echo 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2' | debconf-set-selections -apt-get update +apt-get update -q2 apt-get install -y -q \ php-gettext \ phpmyadmin diff --git a/static/redis-server-ubuntu16.sh b/static/redis-server-ubuntu16.sh index ba71fef9..a9b21918 100644 --- a/static/redis-server-ubuntu16.sh +++ b/static/redis-server-ubuntu16.sh @@ -30,7 +30,7 @@ else mkdir -p $SCRIPTS fi # Get packages to be able to install Redis -apt-get update && sudo apt-get install build-essential -q -y +apt-get update -q2 && sudo apt-get install build-essential -q -y apt-get install tcl8.5 -q -y apt-get install php-pear php7.0-dev -q -y @@ -110,7 +110,7 @@ apt-get purge -y \ php7.0-dev* \ build-essential* -apt-get update +apt-get update -q2 apt-get autoremove -y apt-get autoclean diff --git a/testing/nextcloud-startup-script.sh b/testing/nextcloud-startup-script.sh index 8e274e1f..57076b6f 100644 --- a/testing/nextcloud-startup-script.sh +++ b/testing/nextcloud-startup-script.sh @@ -317,7 +317,7 @@ echo System will now upgrade... sleep 2 echo echo -apt-get update +apt-get update -q2 aptitude full-upgrade -y # Cleanup 1 diff --git a/testing/nextcloud_install_testing.sh b/testing/nextcloud_install_testing.sh index ad02fcbc..6b9e1468 100644 --- a/testing/nextcloud_install_testing.sh +++ b/testing/nextcloud_install_testing.sh @@ -160,7 +160,7 @@ else fi # Update system -apt-get update +apt-get update -q2 # Set locales apt-get install language-pack-en-base -y @@ -220,7 +220,7 @@ sudo hostnamectl set-hostname nextcloud service apache2 restart # Install PHP 7.0 -apt-get update +apt-get update -q2 apt-get install -y \ libapache2-mod-php7.0 \ php7.0-common \ @@ -401,7 +401,7 @@ apt-get install -y zip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam # Install Webmin sed -i '$a deb http://download.webmin.com/download/repository sarge contrib' /etc/apt/sources.list wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add - -apt-get update +apt-get update -q2 apt-get install webmin -y # Add extra security