1
0
Files
build.ems/pkg/deb/DEBIAN/postrm
2025-07-16 15:46:20 +08:00

22 lines
431 B
Plaintext

# !/bin/bash
# Execute the script after uninstallation
case "$1" in
remove)
# Uninstallation operations
# Deletion of service files
systemctl daemon-reload
systemctl disable omc.service
rm -rf /lib/systemd/system/omc.service
systemctl daemon-reload
# Removal of relevant documents
rm -rf /usr/local/bin/omc
rm -rf /usr/local/etc/omc
;;
upgrade)
# Update Operation
;;
esac