From 7e60d3c19d078e221de9c5fa15b25a130e3dc660 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 6 May 2025 13:42:37 +0200 Subject: [PATCH] pkg: fix faulty refactor --- +POST_INSTALL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+POST_INSTALL b/+POST_INSTALL index 6bd5b40007..bd372e7182 100644 --- a/+POST_INSTALL +++ b/+POST_INSTALL @@ -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