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
|
# main
|
||||||
if [ "$(id -u)" = "0" ]; then
|
if [ "$(id -u)" = "0" ]; then
|
||||||
"${libexec}"/setup/setup-user
|
"${libexec}"/scripts/setup-user
|
||||||
"${libexec}"/setup/setup-doas
|
"${libexec}"/scripts/setup-doas
|
||||||
printok "setup complete"
|
printok "setup complete"
|
||||||
else
|
else
|
||||||
printerr "you must be root"
|
printerr "you must be root"
|
||||||
|
|
|
@ -21,7 +21,7 @@ else
|
||||||
-n "${user}" \
|
-n "${user}" \
|
||||||
-c "portzap user" \
|
-c "portzap user" \
|
||||||
-m \
|
-m \
|
||||||
|
-M $("${libexec}"/scripts/get-default-umask) \
|
||||||
-s /sbin/nologin
|
-s /sbin/nologin
|
||||||
chmod u=rwX,g=rX,o= /home/"${user}"/
|
|
||||||
printok "${user} user created"
|
printok "${user} user created"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
# -*- mode: org -*-
|
# -*- 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
|
* v1.2.0
|
||||||
|
|
||||||
**** Change default clone url
|
**** Change default clone url
|
||||||
|
|
Loading…
Reference in a new issue