-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e1a5d9
commit b531997
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Unit] | ||
Description=Check mail for new dmarc reports | ||
|
||
[Service] | ||
Type=simple | ||
Nice=10 | ||
ExecStart=php {PATH}/bin/console app:checkmailbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Check mail for new dmarc reports on schedule | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
echo "Installing systemd service..." | ||
cat $SCRIPT_DIR/dmarcmailcheck.service | sed -e 's@{PATH}@'$SCRIPT_DIR'@g' > /usr/lib/systemd/system/dmarcmailcheck.service | ||
cp $SCRIPT_DIR/dmarcmailcheck.timer /usr/lib/systemd/system/dmarcmailcheck.timer | ||
echo "Reloading systemd daemon..." | ||
systemctl daemon-reload | ||
echo "enable dmarcmailcheck service..." | ||
systemctl enable dmarcmailcheck.timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
echo "Get latest version from git" | ||
git pull | ||
|
||
echo "Install composer dependencies" | ||
composer install | ||
|
||
echo "clear cache" | ||
php bin/console cache:clear | ||
|
||
echo "run migrations" | ||
php bin/console doctrine:migrations:migrate --no-interaction --query-time | ||
|
||
echo "install assets" | ||
php bin/console assets:install public | ||
|
||
echo "warmup cache" | ||
php bin/console cache:warmup |