post_install() {
 echo "Enabling systemd service"
         systemctl enable cups
         
 echo ">> If you use an HTTPS connection to CUPS, the first time you access"
 echo ">> the interface it may take a very long time before the site comes up."
 echo ">> This is because the first request triggers the generation of the CUPS"
 echo ">> SSL certificates which can be a very time-consuming job."
}

post_upgrade() {

    systemctl enable cups

    if [[ $(vercmp ${2} 1:2.3.3op2-3) -eq -1 ]]; then
        systemctl disable org.cups.cupsd
    fi
}

post_remove() {
  echo "Disabling systemd service"
         systemctl disable cups
}
