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/
Re: [Slackbuilds-users] Slackbuilds: doinst.sh and douninst.sh
Johannes Schöpfer via SlackBuilds-users Thu, 18 Jul 2024 22:38:03 -0700
- [Slackbuilds-users] Slackbuilds: ... Alessandro Baggi
- Re: [Slackbuilds-users] Slac... B. Watson
- Re: [Slackbuilds-users] ... Jude DaShiell
- Re: [Slackbuilds-use... B. Watson
- Re: [Slackbuilds... Jude DaShiell
- Re: [Slackbuilds-users] Slac... Willy Sudiarto Raharjo
- Re: [Slackbuilds-users] ... Johannes Schöpfer via SlackBuilds-users
- Re: [Slackbuilds-users] ... Alessandro Baggi
- Re: [Slackbuilds-use... Tim Dickson via SlackBuilds-users
- Re: [Slackbuilds-use... Willy Sudiarto Raharjo
- Re: [Slackbuilds-use... B. Watson
- Re: [Slackbuilds... Alessandro Baggi
- Re: [Slackb... Tonus
- Re: [Sl... Alessandro Baggi
- Re:... Tonus
- Re: [Slackb... Willy Sudiarto Raharjo
- [Slackb... Tim Dickson via SlackBuilds-users
