Public bug reported:

The postinst contains an invalid directory. Apache 2.4 needs it's
configurations in conf-enabled, not conf.d. so it is neccessary to link
conf file to the right directory.

I changed

  # link apache config files in apache's conf.d dir
  webserver="apache2"
  if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/$conffile 
]; then
    ln -s $confpath/$conffile /etc/$webserver/conf.d/$conffile
  fi

to

  # link apache config files in apache's conf.d dir
  webserver="apache2"
  if [ -d /etc/$webserver/conf-available ] && [ ! -e 
/etc/$webserver/conf-available/$conffile ]; then
    ln -s $confpath/$conffile /etc/$webserver/conf-available/$conffile
    a2enconf ocsinventory
  fi

Now it works.

** Affects: ocsinventory-server (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1399103

Title:
  postins script in ocsinventory-server 2.0.5-1.1 contains wrong
  directory name

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocsinventory-server/+bug/1399103/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to