diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-08-03 19:03:08 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:13 -0600 |
commit | fc8d2f56a8104e755766fbbca4729906000cf78d (patch) | |
tree | b902e17f5e59e960772d215ee613a73c8a87226b /plugins/users/login.sh | |
parent | aa5141e77203fd084d809f27d55192a988723803 (diff) |
0.7.2 -- refactor slightly, flesh out plugin: users
Diffstat (limited to 'plugins/users/login.sh')
-rw-r--r-- | plugins/users/login.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/users/login.sh b/plugins/users/login.sh new file mode 100644 index 0000000..615f4c0 --- /dev/null +++ b/plugins/users/login.sh @@ -0,0 +1,20 @@ +#!@SHELL@ +name='rvs users login' +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 <lukeshu@sbcglobal.net>. + +source "$libexecdir/lib/stdio" + +user="$1" +if [ -f "$REPO/users/$user" ]; then + install -m 644 -T "$REPO/users/$user" "$REPO/user" +else + error "User \`$user' does not exist" +fi + |