summarylogtreecommitdiffstats
path: root/digitalwatchdog-client.install
blob: f9fc17e62498f06d8e0c4b9ae68b307f948309e3 (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
26
27
28
29
30
31
32
33
34
35
36
post_install() {
	xdg-icon-resource forceupdate --theme hicolor &> /dev/null

	## Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/

	COMPANY_ID=digitalwatchdog
	FULLVERSION=5.0.0.35271
	TARGET=/opt/$COMPANY_ID/client/$FULLVERSION


	if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
	${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }

	pkill applauncher-bin || true
	update-desktop-database -q
}

post_upgrade() {
	post_install
}

pre_remove() {

	## Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/


	if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
	${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }

	pkill applauncher-bin || true
}

post_remove() {
	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
	update-desktop-database -q
}