summarylogtreecommitdiffstats
path: root/pacautomation.install
blob: dce1f7d1d2ba14b68841e52021c6bdbee6c53fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Scripting around package installation, removal, ...

post_install() {
    systemctl enable pacautomation.timer
    systemctl --global enable pacautomation-notify.socket
    echo "Please reboot to enable pacautomation's services or run:"
    echo '  systemctl start pacautomation.timer'
    echo '  systemctl --global start pacautomation-notify.socket'
}

pre_remove() {
    systemctl disable pacautomation.timer
    systemctl --global disable pacautomation-notify.socket
}

# Tell the user about files he may want to clean up manually
post_remove() {
    echo 'You may delete leftover files that were created by pacautomation:'
    echo '  /var/log/pacautomation.log'
    echo '  /var/spool/pacautomation/'
    echo '  $XDG_STATE_HOME/pacautomation/ (default: $HOME/.local/state/pacautomation/)'
}