QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
793 stars 214 forks source link

RPM installation fails due to an error in postinst script #191

Open krestjaninoff opened 8 years ago

krestjaninoff commented 8 years ago
[root@master1 tmp]# yum localinstall bamboo-1.0.0_1-1.noarch.rpm 
Loaded plugins: fastestmirror
Examining bamboo-1.0.0_1-1.noarch.rpm: bamboo-1.0.0_1-1.noarch
Marking bamboo-1.0.0_1-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package bamboo.noarch 0:1.0.0_1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================
 Package                    Arch                       Version                          Repository                                    Size
===========================================================================================================================================
Installing:
 bamboo                     noarch                     1.0.0_1-1                        /bamboo-1.0.0_1-1.noarch                     9.9 M

Transaction Summary
===========================================================================================================================================
Install  1 Package

Total size: 9.9 M
Installed size: 9.9 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bamboo-1.0.0_1-1.noarch                                                                                                 1/1 
postinst called with unknown argument `1'
warning: %post(bamboo-1.0.0_1-1.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package bamboo-1.0.0_1-1.noarch
  Verifying  : bamboo-1.0.0_1-1.noarch                                                                                                 1/1 

Installed:
  bamboo.noarch 0:1.0.0_1-1                                                                                                                

Complete!

Didn't have time for investigation. Just workarounded by removing 'case' clause from builder/build.after-install script.

The package was build by instruction from README.md. The only change in 'build.sh' is about pkgtype=${_PKGTYPE:-"rpm"}

stevenlee87 commented 7 years ago

same issue: rpm -ivh bamboo-0.2.21_1-1.noarch.rpm Preparing... ################################# [100%] Updating / installing... 1:bamboo-0.2.21_1-1 ################################# [100%] postinst called with unknown argument `1' warning: %post(bamboo-0.2.21_1-1.noarch) scriptlet failed, exit status 1