summarylogtreecommitdiffstats
path: root/warsaw-bin.install
blob: d6449086f082d54d09c5cf4b079a71f2226205a3 (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
37
38
39
40
41
42
43
post_install() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	echo -e "\e[34;1m==>\e[39;1m To use Warsaw, start its service using: \e[0m"
	echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m"
	echo -e "\e[34;1m==>\e[39;1m To start Warsaw at system startup, use the command: \e[0m"
	echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m"
	echo -e "\e[34;1m==>\e[39;1m Complete your bank setup on the website below: \e[0m"
	echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m"

	update-desktop-database -q
}

pre_remove() {

	    if command -v systemctl > /dev/null 2>&1; then
	      systemctl stop warsaw.service
	    fi

	    if command -v warsaw > /dev/null 2>&1; then
	      warsaw stop
	    fi

	    if command -v systemctl > /dev/null 2>&1; then
	      systemctl disable warsaw.service
	      systemctl daemon-reload
	    fi

}

post_remove() {
	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

	    if command -v rm > /dev/null 2>&1; then
	      rm -rf /usr/local/etc/warsaw
	    fi

	    if command -v pkill > /dev/null 2>&1; then
	      pkill wsatspi
	    fi

	update-desktop-database -q
}