Am 19. Juli 2024 02:38:17 MESZ schrieb Willy Sudiarto Raharjo 
<[email protected]>:
>> I noticed that sometime a slackbuild requires to create user and group. In 
>> my case, postgresql.SlackBuild requires user and group creation before 
>> builing the software. Why don't put the user creation inside doinst.sh? The 
>> user/group creation seems not needed for building purpose. I'm missing 
>> something?
>
>if you notice on postgresql.SlackBuild, we have this commands:
>
>mkdir -p $PKG/var/lib/pgsql/$PG_VERSION/data
>chown -R postgres:postgres $PKG/var/lib/pgsql
>
>without having postgres user and group, this would fail and the 
>files/directories will not have correct permission for the application
>
>

This could bei solved using uid/gid directly:
chown -R 209:209 

This would also work in doinst.sh


If this package ist build once, and then is installed on various other boxes, 
it's the same outcome.
manual user/group creation is then needed which is covered by the readme.

It seems postgresql does not actually need a special user to be build.
And if it would, the makefile could bei adjusted.

Johannes 





_______________________________________________
SlackBuilds-users mailing list
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to