-
I'm fixing my bsdgames PR, and it needs a #!/bin/sh
if [ "$1" = 'configure' ]; then
if !getent group 600 | grep -q games; then
# group 600 is not `games`! Time to error out
echo "Group 600 is already allocated but not games, this isn't good"
exit 1
else
pw group add -n games -u 600 &>/dev/null
pw user add -n games -u 600 -g 600 -s /usr/sbin/nologin -d /var/empty &>/dev/null
fi
fi but I don't know what to do for the MacOS one, I need UID and GID to be 600, because multiple games and files have to be packaged while owned by |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Why do you need 600? |
Beta Was this translation helpful? Give feedback.
-
I’m closing this as I am going to |
Beta Was this translation helpful? Give feedback.
I’m closing this as I am going to
chown
andchmod
the files in thepostinst
, I am also going to add a flag topw
to allocate aUID
/GID
in the 300-999 range instead of 1000-?, this will be used for thisgames
user and group and the_apt
user and such.