Project

General

Profile

Actions

Bug #2761

closed

Upgrade to foreman-1.2 on debian: postinsts problem

Added by Cédric Jeanneret almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

I just upgraded from foreman-1.1 to 1.2 using the deb.theforeman.org repository.

I get a nice problem with the dpkg --configure foreman process: the /var/lib/dpkg/info/foreman.postinst seems to be missing some important command, like "bundle update rails".

How to reproduce:
- be sure to get foreman-1.1 installed
- upgrade it
- you'll see an error for the dpkg --configure foreman (post-install instructions)

Workaround:
- go to /usr/share/foreman
- run bundle update rails (may take a while)
- run dpkg --configure -a

This corrected the foreman installation - it may be good to add this bundle command to the foreman.postinst file, like:

  cd /usr/share/foreman
+ bundle update rails
  if [ -f Gemfile.lock ]; then
    CMD="bundle update --local" 
  else
    CMD="bundle install --path ./vendor/ --local --no-prune" 
  fi

This may help other people wanting to update the foreman smoothly.

Cheers,

C.

Actions

Also available in: Atom PDF