[CMake] Create user and group with CPack

Eric Noulard eric.noulard at gmail.com
Thu Jul 20 08:45:19 EDT 2017


2017-07-20 13:48 GMT+02:00 Kristian <kristianonline28 at gmail.com>:

> Ok, I changed the postinstall script based on your suggestions:
>
> i.e. I changed these two lines:
> > WEB_GROUP_ID="$(getent group "${WEB_GROUP}" | cut -d: -f3)"
> and
> > useradd "$WEB_USER" -g "${WEB_GROUP}" -M -r -s /sbin/nologin -c
>
> And it worked now. Thank you for your help. :)
>

You are welcome.

As you may have guessed the first line
WEB_GROUP_ID="$(getent group "${WEB_GROUP}" | cut -d: -f3)"

may be suppressed if
useradd "$WEB_USER" -g "${WEB_GROUP}" -M -r -s /sbin/nologin -c

is OK.
--
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170720/079396ac/attachment.html>


More information about the CMake mailing list