debian: add postinst script to configure sub UID/GID

This commit is contained in:
Simon Fels 2016-07-07 18:12:15 +02:00
commit cf3bfe79e9

26
debian/anbox.postinst vendored Normal file
View file

@ -0,0 +1,26 @@
#!/bin/sh
# postinst script for anbox
#
# see: dh_installdeb(1)
case "$1" in
configure)
usermod --add-subuids 100000-65536 phablet
usermod --add-subgids 100000-65536 phablet
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0