Skip to content

Commit

Permalink
Merge pull request #7 from Nydauron/fix/post-script-apache-reload
Browse files Browse the repository at this point in the history
Fixes service reload errors from installation scripts when apache is not running
  • Loading branch information
sabban authored Feb 3, 2025
2 parents 27dfea4 + e933e7b commit 545f0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ a2enmod mod_crowdsec
if [ "$START" -eq 0 ]; then
echo "no api key was generated, you can generate one on your LAPI server by running 'cscli bouncers add <bouncer_name>' and add it to '$CONFIG'" >&2
else
systemctl reload apache2
systemctl try-reload-or-restart apache2
fi
2 changes: 1 addition & 1 deletion debian/prerm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

a2dismod mod_crowdsec
systemctl reload apache2
systemctl try-reload-or-restart apache2

0 comments on commit 545f0d6

Please sign in to comment.