summarylogtreecommitdiffstats
path: root/intune-portal-bin.install
diff options
context:
space:
mode:
Diffstat (limited to 'intune-portal-bin.install')
-rw-r--r--intune-portal-bin.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/intune-portal-bin.install b/intune-portal-bin.install
new file mode 100644
index 000000000000..e5f51129ed93
--- /dev/null
+++ b/intune-portal-bin.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo "Before you can enroll your device, you need to enable the service and timer and then reboot:"
+ echo "'sudo systemctl enable intune-daemon.service'"
+ echo "'systemctl --user enable intune-agent.service intune-agent.timer'"
+ echo "Don't forget to reboot after running the above commands!"
+
+ # Replace the os-release file, since Intune currently only supports Ubuntu systems
+ mv /etc/os-release /etc/os-release.bak #backup current link file
+ cp /opt/microsoft/intune/share/os-release /etc/os-release #place Ubuntu based os-release file
+}
+
+post_remove() {
+ # Put back original os-release file
+ mv /etc/os-release.bak /etc/os-release
+}