diff options
author | Christopher Walker | 2016-12-28 00:04:42 +0100 |
---|---|---|
committer | David Spencer | 2016-12-31 00:30:10 +0100 |
commit | 9ee62c1f1dfec08b2559c831f8ab444a8f50b588 (patch) | |
tree | 2fa19563236297be05722b092aef402e6dd45989 /network/radiusplugin/doinst.sh | |
parent | 59cbcfe36bb8ab6fcf6a03f33be6f69a803c3b32 (diff) | |
download | slackbuilds-9ee62c1f1dfec08b2559c831f8ab444a8f50b588.tar.gz |
network/radiusplugin: Added (Radius authenticator for OpenVPN).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/radiusplugin/doinst.sh')
-rw-r--r-- | network/radiusplugin/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/radiusplugin/doinst.sh b/network/radiusplugin/doinst.sh new file mode 100644 index 0000000000..7cf7651a04 --- /dev/null +++ b/network/radiusplugin/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/openvpn/radiusplugin.cnf.new |