source: trunk/debathena/config/reactivate/debian/90debathena-reactivate @ 25536

Revision 25536, 459 bytes checked in by jdreed, 12 years ago (diff)
In reactivate: * Set NSS_NONLOCAL_IGNORE when running getent, because we care about local gruops, not Hesiod ones * Add the user to "sudo" as well, since "admin" is gone in Precise (LP: 893842) * Use SESSION_ID, not CHROOT_NAME in schroot setup script. SESSION_ID was always right, and CHROOT_NAME simply happened to match it due to a bug (Debian: 623828) * Also divert lightdm-session (lightdm's session wrapper) and wrap it in snapshot-run
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3set -e
4
5. "$SETUP_DATA_DIR/common-data"
6. "$SETUP_DATA_DIR/common-functions"
7
8if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
9    . "$CHROOT_SCRIPT_CONFIG"
10elif [ "$STATUS" = "ok" ]; then
11    fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
12fi
13
14if [ $STAGE = "setup-start" ]; then
15    info "Adding messagebus to access list for session ${SESSION_ID}"
16    sed -i "/^root-users/s/$/,messagebus/" /var/lib/schroot/session/"${SESSION_ID}"
17fi
18
Note: See TracBrowser for help on using the repository browser.