summaryrefslogtreecommitdiffstats
path: root/abs/extra/shellinabox/shellinaboxd.install
blob: 1fb3a79a368f624cd04368c51ee44d7049c5b9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
    echo "Generate lighttpd include..."
    gen_light_include.py
    echo "Create link to linhes.pem..."
    ln -s /etc/lighttpd/linhes.pem /etc/lighttpd/certificate.pem
    echo "Start runit service for shellinaboxd..."
    add_service.sh shellinaboxd
    /sbin/sv restart shellinaboxd
}

post_upgrade() {
    post_install
}

post_remove() {
    echo "Generate lighttpd include..."
    gen_light_include.py
    echo "Forcing a re-read of lighttpd's configuration file..."
    /sbin/sv hup /service/lighttpd
    echo "Remove link to linhes.pem..."
    rm /etc/lighttpd/certificate.pem
    echo "Remove runit service for shellinaboxd..."
    remove_service.sh shellinaboxd    
}