Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pre-refresh « hooks « snap « certbot-dns-dnsimple - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a253115a676867169aea947524e7549116284dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

first_install="$(snapctl get first-install)"
if [ -z "$first_install" ]; then
    snapctl set first-install="false"
    echo "first install, not doing any version comparison checks" > "$SNAP_DATA/debuglog"
    exit 0
fi

echo "ls $SNAP/certbot-shared:" > "$SNAP_DATA/debuglog"
ls $SNAP/certbot-shared > "$SNAP_DATA/debuglog"
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"