diff --git a/Makefile b/Makefile index 6f89396..b039dd7 100644 --- a/Makefile +++ b/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 diff --git a/makeuser b/makeuser index 769ce93..be8f23f 100755 --- a/makeuser +++ b/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"