#!/bin/sh
set -e

# SPC: post_install scripts
if [ "$1" = "configure" ] && [ -z "$2" ]; then
    systemctl daemon-reload
    systemctl enable tuxedo-tomte.timer
    # Restart also starts not running units (ignore failures during installation)
    systemctl restart tuxedo-tomte.timer > /dev/null || true


fi

# SPC: post_upgrade scripts
if [ "$1" = "configure" ] && [ -n "$2" ]; then
    systemctl daemon-reload
    # Restart also starts not running units (ignore failures during installation)
    systemctl restart tuxedo-tomte.timer > /dev/null || true


fi

#DEBHELPER#
