# !/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
