summarylogtreecommitdiffstats
path: root/ddh.install
blob: c9a7991b6f2492bf657042826ebe6182cfc4e3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
    chmod +x /usr/local/bin/install-ddh.sh
    /usr/local/bin/install-ddh.sh
    rm /usr/local/bin/install-ddh.sh

    systemctl daemon-reload
    systemctl enable ddh
    systemctl start ddh
}

post_remove() {
    systemctl stop ddh
    systemctl disable ddh
    rm -f /etc/systemd/system/ddh.service
}