pre-refresh hook is not necessary to get certbot version

This commit is contained in:
Erica Portnoy 2020-07-13 19:29:42 -07:00
parent 4cc0390b38
commit 3d0935e395
2 changed files with 0 additions and 20 deletions

View file

@ -1,13 +1,6 @@
#!/bin/sh -e
# get certbot version
# cb_installed="$(snapctl get cb-installed)"
# if [ -z "$cb_installed" ]; then
# echo "cb_installed not set, not doing version comparison check" >> "$SNAP_DATA/debuglog"
# exit 0
# fi
if [ ! -f "$SNAP/certbot-shared/__init__.py" ]; then
echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog"
exit 0

View file

@ -1,13 +0,0 @@
#!/bin/sh -e
# echo "ls $SNAP/certbot-shared:" >> "$SNAP_DATA/debuglog"
# ls $SNAP/certbot-shared >> "$SNAP_DATA/debuglog"
# if [ ! -f "$SNAP/certbot-shared/__init__.py" ]; then
# echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog"
# exit 0
# fi
# cb_installed=$(grep -oP "__version__ = '\K.*(?=')" $SNAP/certbot-shared/__init__.py)
# echo "cb_installed: $cb_installed" >> "$SNAP_DATA/debuglog"
# snapctl set cb-installed="$cb_installed"