blob: 63b9e7a3c3c9230cc091b584496a5c22d2de965d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 "For GNOME based systems:"
echo "'systemctl --user enable intune-agent.service intune-agent.timer gnome-keyring-daemon.socket gnome-keyring-daemon.service'"
echo "For Plasma based systems:"
echo "'systemctl --user enable intune-agent.service intune-agent.timer'"
echo "Then add file as mentioned in https://wiki.archlinux.org/title/KDE_Wallet#Automatic_D-Bus_activation."
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
}
|