Compare commits

..

2 commits

Author SHA1 Message Date
d449bcc1b4 Fix typo in commands/portzap-setup
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-13 04:57:50 -03:00
9af7654a9f Replace chmod with -M option 2024-09-13 04:51:29 -03:00
3 changed files with 14 additions and 3 deletions

View file

@ -14,8 +14,8 @@ libexec="${localbase}"/libexec/portzap
##
# main
if [ "$(id -u)" = "0" ]; then
"${libexec}"/setup/setup-user
"${libexec}"/setup/setup-doas
"${libexec}"/scripts/setup-user
"${libexec}"/scripts/setup-doas
printok "setup complete"
else
printerr "you must be root"

View file

@ -21,7 +21,7 @@ else
-n "${user}" \
-c "portzap user" \
-m \
-M $("${libexec}"/scripts/get-default-umask) \
-s /sbin/nologin
chmod u=rwX,g=rX,o= /home/"${user}"/
printok "${user} user created"
fi

View file

@ -1,5 +1,16 @@
# -*- mode: org -*-
* vNEXT
**** Fix typo in ~commands/portzap-setup~
This change fixes a typo that would throw an error when
running the ~portzap setup~ command
**** Replace chmod with -M switch
This change replaces chmod with the -M switch. The -M switch
is given to the ~pw useradd~ command in the ~setup-user~
script
* v1.2.0
**** Change default clone url