#!/bin/sh

set -e

case $1 in
  configure)
    systemctl daemon-reload

    systemctl enable prometheus-sql-exporter.service
    systemctl restart prometheus-sql-exporter.service
    systemctl enable prometheus-sql-exporter-restart.timer
    systemctl start prometheus-sql-exporter-restart.timer
    ;;
esac

#DEBHELPER#
