22 lines
724 B
Bash
22 lines
724 B
Bash
#!/bin/sh -e
|
|
|
|
# Source debconf library.
|
|
. /usr/share/debconf/confmodule
|
|
|
|
# Decide how important it is for the user to see this message
|
|
PRIORITY=high
|
|
# File existence is a sufficient check since this runs before unpacking
|
|
[ -f /etc/sysadmins/positiveinternet-userpackage/installed_username ] && PRIORITY=low
|
|
|
|
# Quiz them about whether to take over an existing user
|
|
db_input $PRIORITY positiveinternet-userpackage/use_existing_username || true
|
|
db_go
|
|
|
|
# Should we overwrite local files, with our funky new versions?
|
|
db_input $PRIORITY positiveinternet-userpackage/overwrite_local_files || true
|
|
db_go
|
|
|
|
# When we leave, should we close the door?
|
|
db_input $PRIORITY positiveinternet-userpackage/remove_on_purge || true
|
|
db_go
|
|
|