#!/bin/sh
set -e

# Automatically added by dh_python3:
if which py3compile >/dev/null 2>&1; then
	py3compile -p cpupower-gui /usr/share/cpupower-gui
fi
if which pypy3compile >/dev/null 2>&1; then
	pypy3compile -p cpupower-gui /usr/share/cpupower-gui || true
fi

# End automatically added section
# Automatically added by dh_installsystemd/12.7.1ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload >/dev/null || true
		if [ -n "$2" ]; then
			_dh_action=restart
		else
			_dh_action=start
		fi
		deb-systemd-invoke $_dh_action 'cpupower-gui-helper.service' >/dev/null || true
	fi
fi
# End automatically added section
