Revision 22901,
367 bytes
checked in by tabbott, 16 years ago
(diff) |
Initial checkin of Athena 9.4 chroot packages.
Note that these packages require you to backport schroot 1.1.6
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if [ $1 = "exec-start" ] && echo $CHROOT_NAME | grep -q ^athena-; then |
---|
4 | LINE=`getent passwd ${AUTH_USER}` |
---|
5 | if grep -q ^${AUTH_USER}: ${CHROOT_PATH}/etc/passwd; then |
---|
6 | # one probably should check that | is not in the passwd entry |
---|
7 | sed -i "s|^$AUTH_USER:.*\$|$LINE|" ${CHROOT_PATH}/etc/passwd |
---|
8 | else |
---|
9 | echo $LINE >> ${CHROOT_PATH}/etc/passwd |
---|
10 | fi |
---|
11 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.