Changeset 2556 for trunk/packages/invirt-dev/debian/invirt-dev.postinst
- Timestamp:
- Nov 22, 2009, 5:58:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.