install_conf 677 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. CONFILE="$FAKEROOT"$CONFIGED/pam.conf
  3. IGNORE_AGE=./.ignore_age
  4. CONF=./pam.conf
  5. echo
  6. if [ -f "$IGNORE_AGE" ]; then
  7. echo "you don't want to be bothered with the age of your $CONFILE file"
  8. yes="n"
  9. elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
  10. if [ -f "$CONFILE" ]; then
  11. echo "\
  12. An older Linux-PAM configuration file already exists ($CONFILE)"
  13. WRITE=overwrite
  14. fi
  15. echo -n "\
  16. Do you wish to copy the $CONF file in this distribution
  17. to $CONFILE ? (y/n) [n] "
  18. read yes
  19. else
  20. yes=n
  21. fi
  22. if [ "$yes" = "y" ]; then
  23. echo " copying $CONF to $CONFILE"
  24. cp $CONF $CONFILE
  25. else
  26. touch "$IGNORE_AGE"
  27. echo " Skipping $CONF installation"
  28. fi
  29. echo
  30. exit 0