diff options
author | Christopher Walker <kris240376@gmail.com> | 2016-12-27 23:04:42 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-12-30 23:30:10 +0000 |
commit | 9ee62c1f1dfec08b2559c831f8ab444a8f50b588 (patch) | |
tree | 2fa19563236297be05722b092aef402e6dd45989 /network/radiusplugin/doinst.sh | |
parent | 59cbcfe36bb8ab6fcf6a03f33be6f69a803c3b32 (diff) |
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 0000000000000..7cf7651a04033 --- /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 |