Changeset 2556 for trunk/packages/invirt-dev
- Timestamp:
- Nov 22, 2009, 5:58:22 PM (15 years ago)
- Location:
- trunk/packages/invirt-dev/debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/debian/changelog
r2552 r2556 4 4 * Generate the apt repository configuration using gen-files instead of 5 5 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 8 11 9 12 invirt-dev (0.0.14) unstable; urgency=low -
trunk/packages/invirt-dev/debian/invirt-dev.postinst
r1782 r2556 6 6 case "$1" in 7 7 configure) 8 if [ -z "$2" ]; then8 if ! getent passwd repository >/dev/null 2>&1; then 9 9 adduser --system repository 10 fi 11 if ! getent group repo >/dev/null 2>&1; then 10 12 addgroup --system repo 13 fi 11 14 12 15 cat >>/etc/sudoers <<EOF 13 16 ### BEGIN invirt-dev 14 17 %repo ALL=(repository) ALWAYS_SET_HOME,NOPASSWD: /usr/bin/reprepro 15 18 ### END invirt-dev 16 19 EOF 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 "-----" 25 27 ;; 26 28
Note: See TracChangeset
for help on using the changeset viewer.