Changeset 2556 for trunk


Ignore:
Timestamp:
Nov 22, 2009, 5:58:22 PM (15 years ago)
Author:
broder
Message:

In invirt-dev:

  • Since the prerm code to remove the repo group from sudoers runs on upgrades, make sure the postinst code to add it back runs on all upgrades, too.
Location:
trunk/packages/invirt-dev/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/changelog

    r2552 r2556  
    44  * Generate the apt repository configuration using gen-files instead of
    55    rolling our own.
    6 
    7  -- Evan Broder <broder@mit.edu>  Sun, 22 Nov 2009 15:57:59 -0500
     6  * Since the prerm code to remove the repo group from sudoers runs on
     7    upgrades, make sure the postinst code to add it back runs on all
     8    upgrades, too.
     9
     10 -- Evan Broder <broder@mit.edu>  Sun, 22 Nov 2009 17:57:21 -0500
    811
    912invirt-dev (0.0.14) unstable; urgency=low
  • trunk/packages/invirt-dev/debian/invirt-dev.postinst

    r1782 r2556  
    66case "$1" in
    77    configure)
    8         if [ -z "$2" ]; then
     8        if ! getent passwd repository >/dev/null 2>&1; then
    99            adduser --system repository
     10        fi
     11        if ! getent group repo >/dev/null 2>&1; then
    1012            addgroup --system repo
     13        fi
    1114           
    12             cat >>/etc/sudoers <<EOF
     15        cat >>/etc/sudoers <<EOF
    1316### BEGIN invirt-dev
    1417%repo   ALL=(repository)        ALWAYS_SET_HOME,NOPASSWD: /usr/bin/reprepro
    1518### END invirt-dev
    1619EOF
    17             echo "-----"
    18             echo "invirt-dev: run"
    19             echo "  adduser --disabled-password \$user"
    20             echo "  adduser \$user repo"
    21             echo "  adduser \$user sbuild"
    22             echo "to make individual users that will build packages."
    23             echo "-----"
    24         fi
     20        echo "-----"
     21        echo "invirt-dev: run"
     22        echo "  adduser --disabled-password \$user"
     23        echo "  adduser \$user repo"
     24        echo "  adduser \$user sbuild"
     25        echo "to make individual users that will build packages."
     26        echo "-----"
    2527    ;;
    2628
Note: See TracChangeset for help on using the changeset viewer.