[aur-general] Create user
Kusoneko
kusoneko at kusoneko.moe
Fri May 22 03:14:31 UTC 2020
On May 22, 2020 2:29:52 AM UTC, karx via aur-general <aur-general at archlinux.org> wrote:
>Hey,
>
>An application I'm thinking about packaging for AUR requires its own
>user
>to run. Is it ok to be/How would I go about creating a "user" that will
>be
>created on the installer's system when they install the package?
>
>Thanks,
>Yash
I looked up an official package I know creates a user (postgresql) and it seems to provide this file[1] and install it in the PKGBUILD[2] with the following line (line 208) :
> install -Dm 644 ${pkgname}.sysusers "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
[1]: https://git.archlinux.org/svntogit/packages.git/tree/trunk/postgresql.sysusers?h=packages/postgresql
[2]: https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/postgresql
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 850 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20200522/941e4527/attachment.sig>
More information about the aur-general
mailing list