| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
#DEBHELPER# |
| 6 |
|
| 7 |
# Check if nginx is installed |
| 8 |
if [ -x "$(command -v nginx)" ]; then |
| 9 |
# Check if nginx service is active |
| 10 |
if systemctl is-active --quiet nginx; then |
| 11 |
# Reload nginx |
| 12 |
deb-systemd-invoke reload nginx |
| 13 |
fi |
| 14 |
fi |
| 15 |
|
| 16 |
exit 0 |