1 2 3 4 5 6 7 8 9 10 11 12
post_install() { getent group gearmand >/dev/null 2>&1 || groupadd -g 113 gearmand &>/dev/null getent passwd gearmand >/dev/null 2>&1 || useradd -u 113 -g gearmand -d /dev/null -s /bin/false gearmand &>/dev/null } post_upgrade() { post_install $1 } post_remove() { userdel gearmand }