head	1.1;
access;
symbols;
locks
	morgan:1.1; strict;
comment	@# @;


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


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/bash

IGNORE_AGE=./.ignore_age
CONF=./radius.skel
MODULE=pam_radius

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
	chmod 600 $CONFILE
else
	echo "  Skipping $CONF installation"
	if [ "$yes" = "n" ]; then
		touch "$IGNORE_AGE"
	fi
fi

echo

exit 0
@
