summaryrefslogtreecommitdiff
path: root/system/letsencrypt
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-28 19:45:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-28 19:45:31 +0700
commit6df5487882a5b1b52b61ea5ec8183af680510470 (patch)
treebfcfcf9de94fe44a2c415d0c281be751acbc867e /system/letsencrypt
parentc13acaf307bd89442d4fdcc0bf699b4e0ac46506 (diff)
downloadslackbuilds-6df5487882a5b1b52b61ea5ec8183af680510470.tar.gz
system/letsencrypt: Detect Python3 version.
Thanks to Ponce. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/letsencrypt')
-rw-r--r--system/letsencrypt/letsencrypt.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/letsencrypt/letsencrypt.SlackBuild b/system/letsencrypt/letsencrypt.SlackBuild
index 0a897b8f3a..4f8025cb66 100644
--- a/system/letsencrypt/letsencrypt.SlackBuild
+++ b/system/letsencrypt/letsencrypt.SlackBuild
@@ -97,7 +97,7 @@ cd ..
# We include default options for Apache
mkdir -p $PKG/etc/letsencrypt/
-cp $PKG/usr/lib${LIBDIRSUFFIX}/python3.7/site-packages/certbot_apache/_internal/options-ssl-apache.conf \
+cp $PKG/usr/lib${LIBDIRSUFFIX}/python$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')/site-packages/certbot_apache/_internal/options-ssl-apache.conf \
$PKG/etc/letsencrypt/options-ssl-apache.conf
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \