Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
da20f325
Commit
da20f325
authored
Dec 07, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createbytask.int.sh: set correct mail in monit config
parent
567a551e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
createbytask.int.sh
vz/azbyka/createbytask.int.sh
+6
-2
No files found.
vz/azbyka/createbytask.int.sh
View file @
da20f325
...
...
@@ -20,6 +20,9 @@ assure $NAME
assure
$AUSER
assure
$ACONF
# TODO: external config
ADMINEMAIL
=
lav@etersoft.ru
# copied from nginx-etersoft's apache2 generating
# new file -> old file
rewrite_if_changed
()
...
...
@@ -122,8 +125,9 @@ check process httpd2 with pidfile /var/run/httpd2/httpd.pid
EOF
subst
"s|monit:secretword|monit:Dip74iFwwP12|g"
/etc/monitrc
subst
"s|set mailserver localhost|set mailserver mail.etersoft.ru port 587|g"
/etc/monitrc
subst
"s|set alert root@localhost|set alert lav@etersoft.ru|g"
/etc/monitrc
subst
"s|^set mailserver .*|set mailserver smtp.azbyka.ru port 587|g"
/etc/monitrc
subst
"s|set alert root@localhost.*|set alert
$ADMINEMAIL
|g"
/etc/monitrc
subst
"s|from: root@localhost|from: noreply+monit-
$AUSER
@azbyka.ru|g"
/etc/monitrc
# only on { timeout, action, nonexist }
subst
"s|use address 127.0.0.1|use address 0.0.0.0|g"
/etc/monitrc
serv monit reload
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment