specify full path to template

This commit is contained in:
Ben Harris 2019-07-03 15:55:14 -04:00
parent 4633ee9dd3
commit 27bc0aff7a
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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"