mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
pre-refresh hook is not necessary to get certbot version
This commit is contained in:
parent
4cc0390b38
commit
3d0935e395
2 changed files with 0 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
Loading…
Reference in a new issue