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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.