install.sh 524 Bytes
Newer Older
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
#!/bin/bash

DEPENDENCIES="git ansible python-apt"
REPO="https://gricad-gitlab.univ-grenoble-alpes.fr/phitem/environnement-bureau-gnome.git"

install_dependencies() {
	for pkg in $DEPENDENCIES; do
		echo -n "Checking dependency $pkg : "
		if ! dpkg -l $pkg  &>/dev/null; then
			echo "installing $pkg..."
			sudo apt-get install -y $pkg
		else
			echo "Ok"
		fi
	done
}

main() {
	install_dependencies
	git clone $REPO
	cd environnement-bureau-gnome
	ansible-playbook gnome.yml
	rm -rf environnement-bureau-gnome
}

main $@