Skip to content

Commit

Permalink
install service
Browse files Browse the repository at this point in the history
  • Loading branch information
antedebaas committed Aug 31, 2023
1 parent 4e44a3c commit 2eff5d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd/install.sh → installservice.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/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
cat $SCRIPT_DIR/systemd/dmarcmailcheck.service | sed -e 's@{PATH}@'$SCRIPT_DIR'@g' > /usr/lib/systemd/system/dmarcmailcheck.service
cp $SCRIPT_DIR/systemd/dmarcmailcheck.timer /usr/lib/systemd/system/dmarcmailcheck.timer
echo "Reloading systemd daemon..."
systemctl daemon-reload
echo "enable dmarcmailcheck service..."
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ git pull
echo "Install composer dependencies"
composer install

echo "Install service"
bash installservice.sh

echo "clear cache"
php bin/console cache:clear

Expand Down

0 comments on commit 2eff5d0

Please sign in to comment.