This change is a revert of previous commits that worked around
the umask not being honored. This commit runs git with the correct
umask, and avoids any need to run chmod manually. The number of
doas.conf rules has been reduced to 2.
'/home/_portzap/ports/' and '/usr/ports/' have reduced permissions for
members of the '_portzap' group, who now possess read-only permissions
for both directories.
The 'portzap erase' command must be run by root, since members of the
'_portzap' group can't delete contents of either of those directories
anymore.
This commit covers a few changes:
* The 'portzap pull' command now switches to '$PORTZAP_BRANCH'
if 'git branch --show-current' returns a different branch.
* The 'portzap pull' command fixes permissions and ownership on
'/home/_portzap/ports/.git' before running any git commands. The
owner and permissions can change by interacting with the
git repository directly, as a user other than '_portzap'.
* doas.conf has been changed to be slightly more strict
I haven't decided whether or not only root can do this (leaning towards
not), and we might want to be more flexible and let the user choose to
delete one of the two directories. For now it works.