#!/bin/sh # # @license http://www.gnu.org/licenses/gpl.html GPL Version 3 # @author OpenMediaVault Plugin Developers # @copyright Copyright (c) 2013-2017 OpenMediaVault Plugin Developers # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions case "$1" in remove|purge) # Remove the configuration data. omv_config_delete "/config/system/omvextras" /bin/rm -f /etc/apt/preferences.d/99omv-extras-org* /bin/rm -f /etc/apt/sources.list.d/omv-extras-org*.list /bin/rm -f /usr/share/openmediavault/mkconf/omvextrasorg ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument '$1'" >&2 exit 1 ;; esac exit 0