Skip to content

Commit a159fa0

Browse files
author
enoch85
committed
silence apt-get update
1 parent fe52d3a commit a159fa0

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

static/install-redis-php-7.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ else mkdir $SCRIPTS
1515
fi
1616

1717
# Get packages to be able to install Redis
18-
apt-get update && sudo apt-get install build-essential -q -y
18+
apt-get update -q2 && sudo apt-get install build-essential -q -y
1919
apt-get install tcl8.5 -q -y
2020
apt-get install php-pear php7.0-dev -q -y
2121

static/phpmyadmin_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else echo 'unzip are installed.' >&2
2828
fi
2929

3030
# Install mbstring for PHP
31-
apt-get update
31+
apt-get update -q2
3232
apt-get install php7.0-mbstring -y -q
3333

3434
# Download phpMyadmin

static/phpmyadmin_install_ubuntu16.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo 'phpmyadmin phpmyadmin/app-password-confirm password $PW_FILE' | debconf-se
2929
echo 'phpmyadmin phpmyadmin/mysql/admin-pass password $PW_FILE' | debconf-set-selections
3030
echo 'phpmyadmin phpmyadmin/mysql/app-pass password $PW_FILE' | debconf-set-selections
3131
echo 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2' | debconf-set-selections
32-
apt-get update
32+
apt-get update -q2
3333
apt-get install -y -q \
3434
php-gettext \
3535
phpmyadmin

static/redis-server-ubuntu16.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else mkdir -p $SCRIPTS
1818
fi
1919

2020
# Get packages to be able to install Redis
21-
apt-get update && sudo apt-get install build-essential -q -y
21+
apt-get update -q2 && sudo apt-get install build-essential -q -y
2222
apt-get install tcl8.5 -q -y
2323
apt-get install php-pear php7.0-dev -q -y
2424

@@ -79,7 +79,7 @@ apt-get purge -y \
7979
php7.0-dev* \
8080
build-essential*
8181

82-
apt-get update
82+
apt-get update -q2
8383
apt-get autoremove -y
8484
apt-get autoclean
8585

static/security.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,4 @@ then
7676
exit 1
7777
else
7878
echo "Security added!"
79-
exit 0
8079
fi

static/wordpress_update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WPATH=/var/www/html/wordpress
1111
[[ `id -u` -eq 0 ]] || { echo "Must be root to run script, in Ubuntu type: sudo -i"; exit 1; }
1212

1313
# System Upgrade
14-
sudo apt-get update
14+
sudo apt-get update -q2
1515
sudo aptitude full-upgrade -y
1616
cd $WPATH
1717
wp db export mysql_backup.sql --allow-root

wordpress_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
fi
9393

9494
# Update system
95-
apt-get update
95+
apt-get update -q2
9696

9797
# Install aptitude
9898
apt-get install aptitude -y
@@ -103,7 +103,7 @@ apt-get install -y zip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam
103103
# Install Webmin
104104
sed -i '$a deb http://download.webmin.com/download/repository sarge contrib' /etc/apt/sources.list
105105
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
106-
apt-get update
106+
apt-get update -q2
107107
apt-get install webmin -y
108108

109109
# Install perl

0 commit comments

Comments
 (0)