#!/bin/sh -e # postinst script for monkeysphere # Author: Jameson Rollins # Copyright 2008 VARLIB="/var/lib/monkeysphere" if ! getent passwd monkeysphere >/dev/null ; then echo "adding monkeysphere user..." adduser --quiet --system --no-create-home --group \ --home "$VARLIB" \ --shell '/bin/bash' \ --gecos 'monkeysphere authentication user,,,' \ monkeysphere fi # install host gnupg home directory install --owner root --group monkeysphere --mode 750 -d "$VARLIB"/gnupg-host # install host gpg.conf cat < "$VARLIB"/gnupg-host/gpg.conf list-options show-uid-validity EOF # install authentication gnupg home directory install --owner monkeysphere --group monkeysphere --mode 700 -d "$VARLIB"/gnupg-authentication # install authentication gpg.conf cat < "$VARLIB"/gnupg-authentication/gpg.conf list-options show-uid-validity primary-keyring $VARLIB/gnupg-authentication/pubring.gpg keyring $VARLIB/gnupg-host/pubring.gpg EOF chown monkeysphere:monkeysphere "$VARLIB"/gnupg-authentication/gpg.conf ch'/> Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/c9/20220815035636.141B785C39DE6940@comicsandfigures.com/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/02/c9/20220815035636.141B785C39DE6940@comicsandfigures.com/unread')