1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
post_install() { # add inetsim group if [ ! `grep inetsim /etc/group` ]; then groupadd -g 16 inetsim &>/dev/null fi # run inetsim setup script cd /opt/inetsim ./setup.sh } post_upgrade() { post_install $1 }