File: postinst

package info (click to toggle)
a2d 2.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,088 kB
  • sloc: javascript: 4,806; python: 1,873; xml: 49; sh: 44; makefile: 17
file content (16 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

#DEBHELPER#

# Check if nginx is installed
if [ -x "$(command -v nginx)" ]; then
    # Check if nginx service is active
    if systemctl is-active --quiet nginx; then
        # Reload nginx
        deb-systemd-invoke reload nginx
    fi
fi

exit 0