summarylogtreecommitdiffstats
path: root/dump1090-mictronics.install
blob: 7b3c642756497d30de0d3850ce289fbec6765147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
    if [ ! -L /usr/share/dump1090/html/data ]; then
        ln -s /var/run/dump1090 /usr/share/dump1090/html/data
    fi

    echo "Internal webserver has been permanently disabled in dump1090"
    echo "To enable lighttpd, copy /usr/share/dump1090/lighttpd.conf to /etc/lighttpd/lighttpd.conf"
    echo "Then run systemctl enable lighttpd && systemctl start lighttpd"
}

pre_remove() {
    systemctl stop dump1090
    systemctl disable dump1090
    unlink /usr/share/dump1090/html/data
}

post_upgrade() {
    post_install
}