1#!/bin/bash 2set -e 3set -v 4 5SCRIPT_DIR=$(dirname $(readlink --canonicalize $0)) 6 7# This script must be run with sudo 8 9systemctl stop hacksaw.socket 10systemctl stop hacksaw.service 11systemctl disable hacksaw.service 12systemctl disable hacksaw.socket 13rm /lib/systemd/system/hacksaw.service 14rm /lib/systemd/system/hacksaw.socket 15deluser ${SUDO_USER} hacksaw 16groupdel hacksaw 17