Add uninstall script
This commit is contained in:
parent
d9d6cbeec5
commit
ee261e39e8
18
uninstall.sh
Normal file
18
uninstall.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Stop the service
|
||||
systemctl --user stop screenmonitor
|
||||
|
||||
# Disable the service
|
||||
systemctl --user disable screenmonitor
|
||||
|
||||
# Remove the service file
|
||||
rm ~/.config/systemd/user/screenmonitor.service
|
||||
|
||||
# Reload systemd to apply changes
|
||||
systemctl --user daemon-reload
|
||||
|
||||
# Optionally remove the script and output directory
|
||||
rm -rf ~/.screenmonitor
|
||||
|
||||
echo "Service uninstalled successfully for user $USER."
|
Loading…
Reference in New Issue
Block a user