install.sh: avoid pointless warning when not using a jail
commitc94e416035ae7ce0cac937d7eddece9f16bce424
authorKyle J. McKay <mackyle@gmail.com>
Mon, 23 Nov 2020 21:18:24 +0000 (23 14:18 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 23 Nov 2020 21:18:24 +0000 (23 14:18 -0700)
treeea211012925c7cdc87f1af55381d06671af42f54
parent613e05021cb835d92edbeacf9cb3f16f633850d0
install.sh: avoid pointless warning when not using a jail

Do not attempt to change the owner of the project database
passwd and group files to the cgi user if a chroot jail is
not in use.

Since sudo privileges are not expected when a chroot jail is
not in use, if the cgi user differs from the mirror user then
a needless warning will be emitted.

Just use the mirror user in this case to avoid the warning.

The group will still be set correctly in either case (or a
warning will be emitted) and that's what really matters
in order to provide write access.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
install.sh