[Slackbuilds-users] Slackbuilds: doinst.sh and douninst.sh
Willy Sudiarto Raharjo
willysr at slackbuilds.org
Fri Jul 19 00:38:17 UTC 2024
> 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
--
Willy Sudiarto Raharjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x3F617144D7238786.asc
Type: application/pgp-keys
Size: 8363 bytes
Desc: OpenPGP public key
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20240719/5c59ad2f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20240719/5c59ad2f/attachment.asc>
More information about the SlackBuilds-users
mailing list