more travis

This commit is contained in:
Daniel Hansson 2019-05-20 16:35:38 +02:00 committed by GitHub
parent 254600b7c7
commit 040509d156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ is_process_running dpkg
# Install curl if not existing
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
then
thengr
print_text_in_color "$IGreen" "curl OK"
else
apt update -q4 & spinner_loading
@ -224,7 +224,7 @@ a2enmod rewrite \
a2dismod mpm_prefork
# Disable server tokens in Apache
if ! [ "$(grep 'ServerSignature' /etc/apache2/apache2.conf)" ]
if ! [ "$(grep -q 'ServerSignature' /etc/apache2/apache2.conf)" ]
then
{
echo "# Turn off ServerTokens for both Apache and PHP"