Remove cruft

This commit is contained in:
Jamie Curnow committed 2023-05-16 08:39:18 +10:00
1 parent d6e96dc3cb
commit b4e5b8b6db
2 files changed
-33

No files matched your search

@@ -1,20 +0,0 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
log_info "Configuring $NPMUSER user ..."
if id -u "$NPMUSER"; then
# user already exists
usermod -u "$PUID" "$NPMUSER" || exit 1
else
# Add npm user
useradd -o -u "$PUID" -U -d "$NPMHOME" -s /bin/false "$NPMUSER" || exit 1
fi
usermod -G "$PGID" "$NPMUSER" || exit 1
groupmod -o -g "$PGID" "$NPMUSER" || exit 1
# Home for npm user
mkdir -p "$NPMHOME"
chown -R "$PUID:$PGID" "$NPMHOME"