Skip to content

Commit 0aa11c4

Browse files
Finalise Progress Bar on Apache make and install
1 parent d2d2fd1 commit 0aa11c4

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.dev-tools/install-apache-2.2.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ sudo apt-get install build-essential
9393

9494
cd /tmp
9595

96-
tput setaf default
96+
tput setaf 7
9797
wget http://www.zlib.net/zlib-1.2.11.tar.gz
9898
tar -xvf zlib-1.2.11.tar.gz > /dev/null
9999
cd zlib-1.2.11/
@@ -109,7 +109,8 @@ printf '\n'
109109
sudo make -s install &> zlib.log &
110110
spinner
111111

112-
tput setaf default
112+
printf '\n'
113+
tput setaf 7
113114
wget https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/raw/master/.dev-tools/_apache_builds/httpd-2.2.25.tar.gz
114115
tar -xvf httpd-2.2.25.tar.gz > /dev/null
115116
cd httpd-2.2.25/
@@ -125,7 +126,8 @@ printf '\n'
125126
sudo make -s install &> apache2build.log &
126127
spinner
127128

128-
tput setaf default
129+
printf '\n'
130+
tput setaf 7
129131
sudo /usr/local/apache2/bin/apachectl start
130132

131133
wget -qO- http://localhost | grep "It works!"

.dev-tools/install-apache-2.4.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,6 @@ cyan=$(tput setaf 6)
5353
white=$(tput setaf 7)
5454
defaultcolor=$(tput setaf default)
5555

56-
# ---------
57-
# FUNCTIONS
58-
# ---------
59-
60-
runwithdots () {
61-
"$@" &
62-
63-
while kill -0 $!; do
64-
printf '.' > /dev/tty
65-
sleep 2
66-
done
67-
68-
printf '\n' > /dev/tty
69-
}
70-
7156

7257
# ******************
7358
# Stop Apache 2.2.25

0 commit comments

Comments
 (0)