head	1.2;
access;
symbols
	Real-Release-0-59:1.2
	Release-0-59:1.2
	pniam_change:1.2.0.4
	Real-Release-0-58:1.2
	Release-0-58:1.2
	broken-signals-0-57:1.2.0.2
	Release-0-56-last:1.2
	Release-0-57:1.2;
locks; strict;
comment	@# @;


1.2
date	96.03.10.21.02.23;	author morgan;	state Rel;
branches;
next	1.1;

1.1
date	96.03.09.08.53.38;	author morgan;	state Exp;
branches;
next	;


desc
@@


1.2
log
@fixed logic and introduced ignore_age flag file
@
text
@#!/bin/bash

IGNORE_AGE=./.ignore_age
CONF=./pam.conf
CONFILE=/etc/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
@


1.1
log
@Initial revision
@
text
@d3 1
d9 9
a17 1
if [ -f $CONFILE ] || [ "$CONF" -nt "$CONFILE" ]; then
d19 2
a20 3
A Linux-PAM configuration file already exists ($CONFILE)
Do you wish to over-write it with the one contained in
this distribution? [n] "
d30 2
a31 1
	echo "  Skipping pam.conf installation"
@
