keymaster: Fix the install script to actually enable the service
Previously, mdt-keymaster wasn't actually being enabled on start, so we couldn't
really push keys.
Change-Id: I438948e79c14ddd985144cd8a805be719c475db8
diff --git a/debian/mdt-keymaster.service b/debian/mdt-keymaster.service
deleted file mode 100644
index 779f516..0000000
--- a/debian/mdt-keymaster.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=MDT public key management service
-After=network.target
-
-[Service]
-Type=simple
-RemainAfterExit=no
-ExecStart=/usr/bin/mdt-keymaster
-Restart=on-failure
-User=mendel
-Group=mendel
-WorkingDirectory=~
-
-[Install]
-WantedBy=multi-user.target
diff --git a/debian/postinst b/debian/postinst
old mode 100644
new mode 100755
index 23f8e64..11cbca5
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,3 +2,5 @@
set -e
touch /var/cache/mdt/packages/Packages
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
index aa360cd..e879b0c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
dh $@ --with systemd
override_dh_systemd_enable:
- dh_systemd_enable --name=mdt-keymaster mdt-keymaster.service
+ dh_systemd_enable --name=mdt-keymaster
override_dh_systemd_start:
- dh_systemd_start --restart-after-upgrade mdt-keymaster
+ dh_systemd_start --restart-after-upgrade mdt-keymaster.service