From fc8d2f56a8104e755766fbbca4729906000cf78d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 3 Aug 2009 19:03:08 -0400 Subject: 0.7.2 -- refactor slightly, flesh out plugin: users --- plugins/users/logout.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/users/logout.sh (limited to 'plugins/users/logout.sh') diff --git a/plugins/users/logout.sh b/plugins/users/logout.sh new file mode 100644 index 0000000..e3207a6 --- /dev/null +++ b/plugins/users/logout.sh @@ -0,0 +1,19 @@ +#!@SHELL@ +name='rvs users logout' +ver='0.7.2' +# Copyright (C) 2009 Luke Shumaker +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# Originally written by Luke Shumaker . + +source "$libexecdir/lib/stdio" + +if [ -f "$REPO/user" ]; then + rm "$REPO/user" +else + error 'you must be logged in to logout' +fi + -- cgit v1.2.3-2-g168b