Compare commits
2 commits
2b65970db6
...
d449bcc1b4
Author | SHA1 | Date | |
---|---|---|---|
d449bcc1b4 | |||
9af7654a9f |
3 changed files with 14 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue