Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2011
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. d-i preseed/late_command string wget finish-script-url -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh
  2.  
  3. # finish.sh
  4. #!/bin/sh
  5. # Install sudo-ldap
  6. env SUDO_FORCE_REMOVE=yes /usr/bin/apt-get -y install sudo-ldap || exit $?
  7. # Puppet handles most of this for me..
  8. # User/bootstrap setup
  9. cat > /etc/nsswitch.conf << EOF
  10. # Template snippet: nsswitch.conf
  11. passwd: files ldap
  12. group: files ldap
  13. shadow: files ldap
  14.  
  15. hosts: files dns mdns
  16. networks: files
  17.  
  18. protocols: db files
  19. services: db files
  20. ethers: db files
  21. rpc: db files
  22.  
  23. netgroup: nis
  24. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement