[Slackbuilds-users] PostgreSQL - multiple installed versions

Thomas Morper thomas at beingboiled.info
Wed Sep 18 21:53:48 UTC 2013


On Wed, 18 Sep 2013, Adis Nezirovic wrote:

> The problem with symlinks is we must not use absolute paths (installpkg 
> can be called with --root parameter). Anyway, I've simplified logic for 
> symlinks in doinst.sh, should be more robust now.
 
> I've also removed PRGNAM from all scripts except SlackBuild (it was a 
> leftover from an earlier experiment with versioned package names).
 
The new version works almost perfectly. One minor nitpick though:

The previous version explicitly set permissions for the DATADIR:

  # permissions for DATADIR should be u=rwx (0700)
  chmod 700 $PKG/var/lib/pgsql/$PG_VERSION/data

The new version doesn't. That's fine, because the mandatory "initdb" will 
set the correct permissions. However, if you "upgradepkg --reinstall" 
postgres the DATADIR's permissions will get reset to 0755 and the server 
won't start any more.

-- 


More information about the SlackBuilds-users mailing list