summarylogtreecommitdiffstats
path: root/microsoft-identity-broker-bin.install
blob: e83f727c82c081f8c3fd2b74079d4c20a9ea684f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
post_install() {
    # Recolic: I believe it's not necessary to start the service at all. This service is triggered by edge from libsdbus. 
    # I don't know why they are doing this. just leave them there. 
	if [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload || true
        # systemctl restart microsoft-identity-device-broker.service || true
	fi
}

post_upgrade() {
	post_install
}

pre_remove() {
	if [ -d /run/systemd/system ]; then
		systemctl stop microsoft-identity-device-broker.service || true
	fi
}

post_remove() {
	if [ -d /run/systemd/system ]; then
		systemctl --system daemon-reload || true
	fi
}