Make certbot package executable

This commit is contained in:
Adrien Ferrand 2020-09-25 00:47:42 +02:00
parent f659124edd
commit e64ad1446e
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,4 @@
from certbot.main import main
if __name__ == "__main__":
main()

View file

@ -20,13 +20,13 @@ adopt-info: certbot
apps:
certbot:
command: bin/python3 $SNAP/bin/certbot
command: bin/python3 -m certbot
environment:
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
AUGEAS_LENS_LIB: "$SNAP/usr/share/augeas/lenses/dist"
CERTBOT_SNAPPED: "True"
renew:
command: bin/python3 $SNAP/bin/certbot -q renew
command: bin/python3 -m certbot -q renew
daemon: oneshot
environment:
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"