summarylogtreecommitdiffstats
path: root/bitwarden_rs.install
blob: ce116456f22eb0f0ac62ae20881605669ec5d594 (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
post_install() {
	echo ""
	echo "##########"
	echo "#"
	echo "#   Remember to configure the server via its environment-variables under /etc/bitwarden_rs.env"
	echo "#   After that, start/enable the server via 'systemctl enable bitwarden_rs.service --now'"
	echo "#"
	echo "##########"
	echo ""

}

post_upgrade() {
	echo "#   Remember to restart the bitwarden_rs unit via 'systemctl restart bitwarden_rs.service', if neccessary."
}

pre_remove() {
	# Stop service
	systemctl --quiet --no-reload disable --now bitwarden_rs.service
}

post_remove() {
	echo ""
	echo "##########"
	echo "#"
	echo "#   Remember to remove the user/group bitwarden_rs, if neccessary."
	echo "#   All server data in /var/lib/bitwarden_rs was NOT deleted!"
	echo "#"
	echo "##########"
	echo ""
}