1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /bin/bash post_install() { if [ ! `grep scissy /etc/group` ]; then groupadd -r scissy &>/dev/null; fi if ! id scissy &>/dev/null ; then useradd -r -g scissy -d /var/lib/scissy -s /bin/bash scissy fi systemd-tmpfiles --create scissy.conf chown -R scissy:scissy /var/lib/scissy chown -R scissy:scissy /etc/scissy } post_upgrade() { post_install }