mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-24 02:03:39 +08:00
1ffe510887
Purpose of commit: cleanup Commit summary: --------------- A little closer to supporting AIX. These changes are not all of the suggested changes in the bug report that I will close as a result of this checkin, but they are all the changes that I feel happy making right now. I've avoided some of the more gratutitous changes, hoping that the submitter will reevaluate what they need in the light of what I have committed here.
37 lines
677 B
Bash
Executable File
37 lines
677 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CONFILE="$FAKEROOT"$CONFIGED/pam.conf
|
|
IGNORE_AGE=./.ignore_age
|
|
CONF=./pam.conf
|
|
|
|
echo
|
|
|
|
if [ -f "$IGNORE_AGE" ]; then
|
|
echo "you don't want to be bothered with the age of your $CONFILE file"
|
|
yes="n"
|
|
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
|
|
if [ -f "$CONFILE" ]; then
|
|
echo "\
|
|
An older Linux-PAM configuration file already exists ($CONFILE)"
|
|
WRITE=overwrite
|
|
fi
|
|
echo -n "\
|
|
Do you wish to copy the $CONF file in this distribution
|
|
to $CONFILE ? (y/n) [n] "
|
|
read yes
|
|
else
|
|
yes=n
|
|
fi
|
|
|
|
if [ "$yes" = "y" ]; then
|
|
echo " copying $CONF to $CONFILE"
|
|
cp $CONF $CONFILE
|
|
else
|
|
touch "$IGNORE_AGE"
|
|
echo " Skipping $CONF installation"
|
|
fi
|
|
|
|
echo
|
|
|
|
exit 0
|