summarylogtreecommitdiffstats
path: root/tinyfecvpn.install
blob: efa5717a41930e5c8bffacbfa786889ce5752244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
        systemctl --quiet daemon-reload
        systemctl --quiet preset tinyvpn.service
}

post_upgrade() {
        systemctl --quiet daemon-reload
        systemd-tmpfiles --create tinyvpn.conf
        systemctl --quiet try-restart tinyvpn.service
}

pre_remove() {
        systemctl --quiet --no-reload disable --now tinyvpn.service
}

post_remove() {
        systemctl --quiet daemon-reload
}