All checks were successful
farmcontrol/farmcontrol-server/pipeline/head This commit looks good
Introduce a new before-remove.sh script to stop and disable the farmcontrol-server service before package removal. Update after-remove.sh to only reload systemd, simplifying the uninstallation process. Modify build-linux-packages.sh to include the new before-remove script in the packaging process.
7 lines
262 B
Bash
Executable File
7 lines
262 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Stop and disable before package files (including the unit file) are removed
|
|
systemctl stop farmcontrol-server.service 2>/dev/null || true
|
|
systemctl disable farmcontrol-server.service 2>/dev/null || true
|
|
systemctl daemon-reload 2>/dev/null || true
|