Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run initdb for any redhat-derived platform version on first install
This should have been done in the 2012-11-02 commit to "[COOK-1844] Make service name configurable." That change corrected the initdb call with the version-specific service name, and it also removed the comment about the code being not valid for 9.x. It should have removed the "if node[postgresql][version].to_f < 9.0", too. That is what I have done, to complete that fix.
- Loading branch information
d9c1668
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
This change removed the fix that enabled the SuSE platform to work. On the SuSE version of the postgresql-server package the /etc/init.db/postgresql does not have an initdb sub-command. Here is the list of command available:
STDOUT: Usage: /etc/init.d/postgresql {start|stop|status|try-restart|restart|force-reload|reload|probe}
I think placing the following condition around the initdb invocation will suffice:
Cheers,
-Lyndon-
d9c1668
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoshposh, Sorry about that! Fixed in 05ff11b and will be in the next release.
d9c1668
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, though you might want to consider accepting pull request #51 which seems to address this as well. Anyway, thanks again.