use standard useradd options only, so the command works on bsds too, and no need for users to add an explicit -config flag anymore

This commit is contained in:
Mechiel Lukkien 2023-02-22 10:42:20 +01:00
parent 8affa12c39
commit a480bcd583
No known key found for this signature in database

View file

@ -529,8 +529,8 @@ or if you are sending email for your domain from other machines/services, you
should understand the consequences of the DNS records above before should understand the consequences of the DNS records above before
continuing! continuing!
You can now start mox with "mox -config config/mox.conf serve", but see below You can now start mox with "mox serve", but see below for recommended ownership
for recommended ownership and permissions. and permissions.
`) `)
@ -550,7 +550,7 @@ for recommended ownership and permissions.
user name "mox", and the admin user is the current user, the following command user name "mox", and the admin user is the current user, the following command
sets the correct permissions: sets the correct permissions:
sudo useradd --no-create-home --home-dir $PWD mox sudo useradd -d $PWD mox
sudo chown %s:mox . mox sudo chown %s:mox . mox
sudo chown -R mox:%s config data sudo chown -R mox:%s config data
sudo chmod 751 . sudo chmod 751 .