LabelPrinting/uninstall.sh

16 lines
334 B
Bash

#!/usr/bin/env bash
BASEDIR=$(dirname "$(readlink -f "$0")")
escaped_script_dir=$(echo "$BASEDIR" | sed 's/[\/&]/\\&/g')
echo "uninstalling LabelPrinting autostart!"
sudo systemctl stop labelprinting
sudo systemctl disable labelprinting
sudo rm /etc/systemd/system/labelprinting.service
sudo systemctl daemon-reload
echo "Done"