summaryrefslogtreecommitdiff
path: root/plugins/users/login.sh
blob: 615f4c08979374dbefaa5641446fdbd67bce882f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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