source:
make-mini-image/config/08-nsswitch
@
1751
Last change on this file since 1751 was 1751, checked in by , 5 years ago | |
---|---|
|
|
File size: 245 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | set -e |
3 | |
4 | source CONFIG |
5 | source functions |
6 | |
7 | ensure BASE NAME |
8 | |
9 | echo "Setting up databases ..." |
10 | |
11 | sed -i -r 's/(passwd|group):(.*)compat/\1:\2ldap files/g' ./${BASE}/${NAME}/etc/nsswitch.conf |
12 | |
13 | if [ "$?" != "0" ]; then |
14 | exit 1 |
15 | fi |
16 | |
17 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.