fix permission error

This commit is contained in:
Ben Harris 2020-06-18 15:57:17 -04:00
parent 7bbf6b6759
commit 71c4e92fd4
2 changed files with 5 additions and 4 deletions

View File

@ -1,13 +1,14 @@
BINDIR ?= /usr/local/bin
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
install:
@echo installing the executable to $(BINDIR)
$(info 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)
$(info removing the executable from $(BINDIR))
@rm -f $(BINDIR)/makeuser
@rm -f $(BINDIR)/welcome-email.tmpl

View File

@ -60,6 +60,6 @@ case $1 in
/usr/local/bin/toot "welcome new user ~$1!"
printf "cleanup current signup\n"
sed -i"" "/\b$1\b/d" /var/signups_current
sudo sed -i"" "/\b$1\b/d" /var/signups_current
;;
esac