You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
368 B
17 lines
368 B
4 months ago
|
#!/bin/bash
|
||
|
set -e
|
||
|
set -v
|
||
|
|
||
|
SCRIPT_DIR=$(dirname $(readlink --canonicalize $0))
|
||
|
|
||
|
# This script must be run with sudo
|
||
|
|
||
|
systemctl stop hacksaw.socket
|
||
|
systemctl stop hacksaw.service
|
||
|
systemctl disable hacksaw.service
|
||
|
systemctl disable hacksaw.socket
|
||
|
rm /lib/systemd/system/hacksaw.service
|
||
|
rm /lib/systemd/system/hacksaw.socket
|
||
|
deluser ${SUDO_USER} hacksaw
|
||
|
groupdel hacksaw
|