mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
Use sudo for apache2ctl command
This commit is contained in:
parent
63dad3f18a
commit
93298cd98e
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ elif [ "$OS_TYPE" = "centos" ]; then
|
|||
APACHE_NAME=httpd
|
||||
fi
|
||||
OPENSSL_VERSION=$(strings "$MOD_SSL_LOCATION" | egrep -o -m1 '^OpenSSL ([0-9]\.[^ ]+) ' | tail -c +9)
|
||||
APACHE_VERSION=$($APACHE_NAME -v | egrep -o 'Apache/([0-9]\.[^ ]+)' | tail -c +8)
|
||||
APACHE_VERSION=$(sudo $APACHE_NAME -v | egrep -o 'Apache/([0-9]\.[^ ]+)' | tail -c +8)
|
||||
"$PYTHON_NAME" tests/letstest/scripts/test_openssl_version.py "$OPENSSL_VERSION" "$APACHE_VERSION"
|
||||
if [ $? -ne 0 ] ; then
|
||||
FAIL=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue