head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	97.04.05.06.22.32;	author morgan;	state Exp;
branches;
next	1.3;

1.3
date	96.08.09.06.33.08;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	96.07.08.00.02.48;	author morgan;	state Exp;
branches;
next	1.1;

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


desc
@a script to install the time.conf file in /etc/security
@


1.4
log
@fakeroot
@
text
@#!/bin/bash

CONFILE=$FAKEROOT"$CONFILE"
IGNORE_AGE=./.ignore_age
CONF=./time.conf
MODULE=pam_time

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 $MODULE 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=skip
fi

if [ "$yes" = "y" ]; then
	mkdir -p /etc/security
	echo "  copying $CONF to $CONFILE"
	cp $CONF $CONFILE
else
	echo "  Skipping $CONF installation"
	if [ "$yes" = "n" ]; then
		touch "$IGNORE_AGE"
	fi
fi

echo

exit 0
@


1.3
log
@modified to make use of makefile directives for installation file
@
text
@d3 1
@


1.2
log
@fixed the ignore_age bit
@
text
@d5 1
a5 1
CONFILE=/etc/security/time.conf
d15 1
a15 1
An older pam_time configuration file already exists ($CONFILE)"
d27 1
@


1.1
log
@Initial revision
@
text
@d23 1
a23 1
	yes=n
a29 1
	touch "$IGNORE_AGE"
d31 3
@
