Skip to content
Snippets Groups Projects
x.install 634 B
Newer Older
Recolic Keghart's avatar
Recolic Keghart committed
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
Recolic's avatar
Recolic committed
        # systemctl restart microsoft-identity-device-broker.service || true
Recolic Keghart's avatar
Recolic Keghart committed
	fi
}

post_upgrade() {
	post_install
}

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

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