#!/usr/bin/env bash source $SNAP/helper/functions require_root snapctl stop --disable "${SNAP_NAME}.${SNAP_NAME}" if [ $? -eq 0 ]; then echo "Service ${SNAP_NAME} disabled." exit 0 fi echo "Failed disabling ${SNAP_NAME} service" >&2 exit 1