mirror of
https://github.com/tildeclub/makeuser.git
synced 2026-03-03 10:00:18 +00:00
specify full path to template
This commit is contained in:
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"
|
||||
|
||||
Reference in New Issue
Block a user