summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/99-clean_install.inc
blob: 84bf85bba79b05fc839315f4747b16c879a3b625 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Functions for cleaning some stuff after script run

clean_logfiles() {
	echo "# cleaning log files ..."
	find /var/log -type f -delete \
		|| pwarning " error cleaning log files."
}


clean_root_ssh() {
	echo "# wiping root's .ssh dir ..."
	rm -rf -- /root/.ssh || pwarning "Error wiping root's .ssh dir"
}

clean_install() {
	GESERR=0
	echo "# Cleanup"
	clean_root_ssh
	clean_logfiles
}