#!/bin/sh

addgroup -S git-pages 2>/dev/null
adduser -S -D -H -h /var/lib/git-pages -s /sbin/nologin -G git-pages -g git-pages git-pages 2>/dev/null

cat >&2 <<EOF
:: The openrc service provided by this package expects the presence of
   the "/etc/git-pages/config.toml" configuration file, which needs to be created.

   Check "/etc/git-pages/config.default.toml" and "/etc/git-pages/config.example.toml"
   for default values and configuration examples.

   Note that the openrc service runs with the "git-pages" system user (which gets
   automatically created when installing the package), so the configuration should be
   readable by that user.
EOF

exit 0
