yo8192 / fcron

fcron is an advanced cron for Linux/Unix systems
http://fcron.free.fr
GNU General Public License v2.0
135 stars 12 forks source link

create users and groups on Darwin when building #1

Closed awanwar closed 5 months ago

awanwar commented 5 years ago

Was unable to create users and groups on macOS because "groupadd" and "useradd" only work on Linux. I've added a patch that detects if you're building on Darwin, and if you are, create the appropriate user and group using Darwin-specific commands. I set the user ID and the group ID both to 601. Feel free to change them, but be sure that no two users (or groups) will have the same ID by making it uncommon or adding some kind of script to detect unused IDs.

yo8192 commented 5 months ago

Closing this old PR... feel free to open a new one, addressing the point I raised.