mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
523 B
26 lines
523 B
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/default/sems -- "$@"
|
|
dpkg-maintscript-helper rm_conffile /etc/init.d/sems -- "$@"
|
|
|
|
case "$1" in
|
|
configure)
|
|
# add sems user
|
|
adduser --quiet --system --group --disabled-password --shell /bin/false \
|
|
--gecos "SIP Express Media Server" --home /var/run/ngcp-sems sems || true
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "postinst called with unknown argument \$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|