summaryrefslogtreecommitdiff
path: root/debian/monkeysphere.postinst
blob: 50eaefafe852190c23d793e75b77fc5e54d51c04 (plain)
  1. #!/bin/sh -e
  2. # postinst script for monkeysphere
  3. # Author: Jameson Rollins <jrollins@fifthhorseman.net>
  4. # (c) 2008
  5. if ! getent passwd monkeysphere >/dev/null ; then
  6. echo "adding monkeysphere user..."
  7. adduser --quiet --system --no-create-home --home '/var/lib/monkeysphere' \
  8. --shell '/bin/sh' --gecos 'monkeysphere authentication user,,,' monkeysphere
  9. fi
  10. # install host gnupg home directories
  11. install --mode 700 -d /var/lib/monkeysphere/gnupg-host
  12. # install authentication gnupg home directories
  13. install --mode 700 --owner monkeysphere -d /var/lib/monkeysphere/gnupg-authentication