mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
pkg: fix faulty refactor
This commit is contained in:
parent
00e616e567
commit
7e60d3c19d
1 changed files with 2 additions and 1 deletions
|
|
@ -1,13 +1,14 @@
|
|||
USER=wwwonly
|
||||
UID=789
|
||||
|
||||
PW=/usr/sbin/pw
|
||||
PW_ARG=add
|
||||
if ${PW} usershow ${USER} >/dev/null 2>&1; then
|
||||
PW_ARG=mod
|
||||
fi
|
||||
|
||||
echo "Creating user '${USER}' with uid '${UID}'"
|
||||
/usr/sbin/pw user${PW_ARG} ${USER} -u ${UID} -g 80 -c "World Wide Web Only" -d /nonexistent -s /usr/sbin/nologin
|
||||
${PW} user${PW_ARG} ${USER} -u ${UID} -g 80 -c "World Wide Web Only" -d /nonexistent -s /usr/sbin/nologin
|
||||
|
||||
echo "Updating /etc/shells"
|
||||
cp /etc/shells /etc/shells.bak
|
||||
|
|
|
|||
Loading…
Reference in a new issue