#!/bin/sh set -e # creating www group if it isn't already there if ! getent group www-data >/dev/null; then addgroup --system www-data fi # creating thttpd user if he isn't already there if ! getent passwd www-data >/dev/null; then adduser --system --ingroup www-data --no-create-home --home /var/www \ --gecos "Web server" --shell /usr/sbin/nologin www-data fi