summarylogtreecommitdiffstats
path: root/pulseway-bin.install
blob: 18c2474fbbfd6c09ad33a272d6cddb584bc6302a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

post_install() {
    chmod 644 /etc/systemd/system/pulseway.service
    systemctl daemon-reload
    systemctl enable pulseway.service
}

post_remove() {
    systemctl stop pulseway
    systemctl disable pulseway
    systemctl daemon-reload
    rm -rf /var/pulseway
    rm -rf /var/lib/pulseway
}