mirror of
https://github.com/tildeclub/makeuser.git
synced 2026-11-06 16:25:38 +00:00
specify full path to template
This commit is contained in:
1 parent
4633ee9dd3
commit
27bc0aff7a
2 files changed
+4
-5
No files matched your search
@@ -1,14 +1,13 @@
|
|||||||
PREFIX ?= /usr/local
|
BINDIR ?= /usr/local/bin
|
||||||
BINDIR ?= $(PREFIX)/bin
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo Installing the executable to $(BINDIR)
|
@echo installing the executable to $(BINDIR)
|
||||||
@mkdir -p $(BINDIR)
|
@mkdir -p $(BINDIR)
|
||||||
@install -m 755 makeuser $(BINDIR)
|
@install -m 755 makeuser $(BINDIR)
|
||||||
@install -m 644 welcome-email.tmpl $(BINDIR)
|
@install -m 644 welcome-email.tmpl $(BINDIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo Removing the executable from $(BINDIR)
|
@echo removing the executable from $(BINDIR)
|
||||||
@rm -f $(BINDIR)/makeuser
|
@rm -f $(BINDIR)/makeuser
|
||||||
@rm -f $(BINDIR)/welcome-email.tmpl
|
@rm -f $(BINDIR)/welcome-email.tmpl
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ case $1 in
|
|||||||
|| error_exit "couldn't add user"
|
|| error_exit "couldn't add user"
|
||||||
|
|
||||||
echo "sending welcome mail"
|
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 [email protected]
|
| sendmail $1 $2 [email protected]
|
||||||
|
|
||||||
echo "subscribing to mailing list"
|
echo "subscribing to mailing list"
|
||||||
|
|||||||
Reference in new issue
Block a user