1 2 3 4 5 6 7 8 9 10 11
username="rocketchat" post_install() { systemd-sysusers "${username}.conf" chown -R "${username}:${username}" /etc/rocketchat-server.conf /usr/share/webapps/rocketchat-server } post_upgrade(){ getent passwd "${username}" >/dev/null 2>&1 || systemd-sysusers "${username}.conf" }