scron/scripts/preremove.sh
2025-07-31 03:23:35 +02:00

10 lines
No EOL
203 B
Bash
Executable file

#!/bin/bash
set -e
# Stop and disable service before removal
if systemctl is-active --quiet scron; then
systemctl stop scron
fi
if systemctl is-enabled --quiet scron; then
systemctl disable scron
fi