3
if [ -z "$SNAP" ]; then
8
upgrade_path="$SNAP_DATA/.upgraded_${SNAP_VERSION}"
10
# ufw.srv will have already done this on install.
11
if [ ! -e "$upgrade_path" ]; then
12
echo "Rules not found in '$SNAP_DATA'. Aborting"
16
"$SNAP"/lib/ufw/ufw-init --rootdir "$SNAP" --datadir "$SNAP_DATA" "$@"