Skip to content
Snippets Groups Projects
prerm 757 B
Newer Older
#!/bin/bash

case "$1" in
    purge|remove|abort-upgrade|failed-upgrade|upgrade)
Dmitriy A. Gerasimov's avatar
Dmitriy A. Gerasimov committed
    [ -f /etc/init.d/cellframe-dashboard ] && service cellframe-dashboard stop
    [ -d /opt/cellframe-dashboard ] && rm -rf /opt/cellframe-dashboard/
    [ -f /usr/local/bin/CellFrameDashboard ] && rm /usr/local/bin/CellFrameDashboard
    [ -f /etc/init.d/cellframe-dashboard ] && rm /etc/init.d/cellframe-dashboard
    systemctl daemon-reload
Dmitriy A. Gerasimov's avatar
Dmitriy A. Gerasimov committed
    [ -f /usr/share/applications/CellFrameDashboard.desktop ] && rm /usr/share/applications/CellFrameDashboard.desktop
    [ -f /usr/share/pixmaps/CellFrameDdashboard.ico ] && rm /usr/share/pixmaps/CellFrameDashboard.ico
    ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0