forked from team/makeuser
specify full path to template
This commit is contained in:
parent
4633ee9dd3
commit
27bc0aff7a
7
Makefile
7
Makefile
|
@ -1,14 +1,13 @@
|
|||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
BINDIR ?= /usr/local/bin
|
||||
|
||||
install:
|
||||
@echo Installing the executable to $(BINDIR)
|
||||
@echo installing the executable to $(BINDIR)
|
||||
@mkdir -p $(BINDIR)
|
||||
@install -m 755 makeuser $(BINDIR)
|
||||
@install -m 644 welcome-email.tmpl $(BINDIR)
|
||||
|
||||
uninstall:
|
||||
@echo Removing the executable from $(BINDIR)
|
||||
@echo removing the executable from $(BINDIR)
|
||||
@rm -f $(BINDIR)/makeuser
|
||||
@rm -f $(BINDIR)/welcome-email.tmpl
|
||||
|
||||
|
|
2
makeuser
2
makeuser
|
@ -38,7 +38,7 @@ case $1 in
|
|||
|| error_exit "couldn't add user"
|
||||
|
||||
echo "sending welcome mail"
|
||||
sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/" welcome-email.tmpl \
|
||||
sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/" /usr/local/bin/welcome-email.tmpl \
|
||||
| sendmail $1 $2 sudoers@tilde.team
|
||||
|
||||
echo "subscribing to mailing list"
|
||||
|
|
Loading…
Reference in New Issue