debian: add postinst script to configure sub UID/GID
This commit is contained in:
parent
2a38031c52
commit
cf3bfe79e9
1 changed files with 26 additions and 0 deletions
26
debian/anbox.postinst
vendored
Normal file
26
debian/anbox.postinst
vendored
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue