8371: Rails postrm only fires after removing last RPM.
[arvados-dev.git] / jenkins / rails-package-scripts / postrm.sh
index 8c45d2f8ce78e1e9b5e33341070cc0011d7c4a27..2d63f0b9e87cc3bb2fced7b7d4d3e97f032c66a5 100644 (file)
@@ -14,7 +14,7 @@ purge () {
 if [ "$1" = 'purge' ]; then
   # This is a debian-based system and purge was requested
   purge
-elif [ "$1" = "0" ] || [ "$1" = "1" ] || [ "$1" = "2" ]; then
+elif [ "$1" = "0" ]; then
   # This is an rpm-based system, no guarantees are made, always purge
   # Apparently yum doesn't actually remember what it installed.
   # Clean those files up here, then purge.