surely, more logic will help
This commit is contained in:
parent
fc5f10d4dd
commit
4346b838ed
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f login-mailer.service ]; then
|
||||
echo "have you copied and edited login-mailer.service.template?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp ./login-mailer.sh /usr/local/bin/login-mailer
|
||||
cp ./login-mailer.service /etc/systemd/system/login-mailer.service
|
||||
cp ./login-mailer.timer /etc/systemd/system/login-mailer.timer
|
||||
|
@ -1,8 +0,0 @@
|
||||
[Unit]
|
||||
Description=Login Mailer
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/root/server-toolset/login-mailer.sh
|
||||
Environment="EMAIL=your_email@example.org"
|
||||
Environment="ENDPOINT=mail.example.org/api/mail"
|
Loading…
x
Reference in New Issue
Block a user