postuninstall.sh revision ff9ebc9ed4e9593360309eac406b1d021fa4d865
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License, Version 1.0 only 2362N/A# (the "License"). You may not use this file except in compliance 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# file and include the License file at 0N/A# add the following below this CDDL HEADER, with the fields enclosed 0N/A# by brackets "[]" replaced with your own identifying information: 0N/A# Portions Copyright [yyyy] [name of copyright owner] 0N/A# Copyright 2013-2015 ForgeRock AS. 0N/A# =================================== 0N/A# RPM Post Uninstall Script (%postun) 0N/A# =================================== 0N/A# If the first argument to %preun and %postun is 0, the action is uninstallation. 0N/A# If the first argument to %preun and %postun is 1, the action is an upgrade. 0N/Aif [
"$1" ==
"0" ] ;
then 0N/A echo "Post Uninstall - uninstall" 0N/A echo "OpenDJ successfully removed." 0N/Aelse if [
"$1" ==
"1" ] ;
then 0N/A echo "Post Uninstall - upgrade uninstall"