Sha256: 2a35b7a9c6304dfdffaedbeff9f2d7c1b65287041c3f648fd9f13d35a59bbd4c

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

#!/bin/sh
#Sample post-delete.sh script for easyfpm : https://github.com/wanix/easyfpm.git
#Usage for deb : https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
#Usage for rpm : http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-scripts.html

myOperation=${1}

case ${myOperation} in
  0)              #Uninstall RedHat
                  exit 0;;
  1)              #Upgrade RedHat
                  exit 0;;
  remove)         #Debian:
                  #postrm remove
                  exit 0;;
  purge)          #Debian:
                  #postrm purge
                  exit 0;;
  upgrade)        #Debian:
                  #old-postrm upgrade <new-version>
                  exit 0;;
  disappear)      #Debian:
                  #disappearer's-postrm disappear <overwriter> <overwriter-version>
                  exit 0;;
  failed-upgrade) #Debian:
                  #new-postrm failed-upgrade <old-version>
                  exit 0;;
  abort-install)  #Debian:
                  #new-postrm abort-install
                  # or new-postrm abort-install <old-version>
                  exit 0;;
  abort-upgrade)  #Debian:
                  #new-postrm abort-upgrade <old-version>
                  exit 0;;
  \?)             #Unknown
                  exit 1;;
  *)              exit 1;;
esac
exit 0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
easyfpm-0.3.0 doc/samples/install_scripts/post-delete.sh
easyfpm-0.3.0.pre doc/samples/install_scripts/post-delete.sh
easyfpm-0.2.1.pre doc/samples/install_scripts/post-delete.sh
easyfpm-0.2.0.pre doc/samples/install_scripts/post-delete.sh
easyfpm-0.1.0.pre doc/samples/install_scripts/post-delete.sh