summaryrefslogblamecommitdiffstats
path: root/satellit_installer/includes/50-install_taskmanager.inc
blob: 0c6b70cbac157a6c1be1b81f4bbc8784e733667e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                       
                                                 

                                           
                                                                        







                                                              
 
install_taskmanager() {
	# $1: directory to install taskmanager to
	echo "# Installing taskmanager... "
	mkdir -p "$1"
	unpack_tar_gz "$BASEDIR/static_files/taskmanager.tar.gz" "-C $1"
	chown -R root:root "$1" || perror "chown $1 failed"
	install_files "taskmanager"
	chown -R root:taskmanager "$TASKMANDIR/config"
	chmod 0750 "$TASKMANDIR/config"
	chmod 0640 \
		"$TASKMANDIR/config/config" \
		"$TASKMANDIR/config/environment" \
		|| perror "chmod of taskmanager config failed"
}