mrDoctorWho/vk4xmpp

View on GitHub
DEBIAN/postinst.systemd

Summary

Maintainability
Test Coverage
#!/bin/sh

set -e

if [ "$1" = configure ]; then

   if ! getent passwd vk4xmpp >/dev/null; then
      adduser --disabled-password --quiet --system \
        --home "/usr/share/vk4xmpp" --no-create-home \
        --gecos "Vkontakte XMPP Transport" --group vk4xmpp
    fi
fi