summarylogtreecommitdiffstats
path: root/calibre-installer.install
blob: 4468c93b356d917d5fc847842f93ef2d1254652f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
    echo "Enabling and starting systemd timer. To disable, run:"
    echo -e "\tsystemctl disable calibre-upgrade.timer"
    systemctl enable calibre-upgrade.timer
    systemctl start calibre-upgrade.timer
    echo "Also performing initial run of service to ensure calibre is up-to-date..."
    systemctl start calibre-upgrade.service
}

pre_remove() {
    echo "Disabling and removing systemd timer."
    systemctl stop calibre-upgrade.timer
    systemctl disable calibre-upgrade.timer
}