Commit f92e838c authored by Alexandru Ovidiu Gacea's avatar Alexandru Ovidiu Gacea
Browse files

Merge branch '3-est-ce-qu-on-ajoute-un-script-install-sh' into 'master'

Resolve "Est-ce qu'on ajoute un script install.sh ?"

Closes #3

See merge request !1
parents 147df5a6 23b509cb
......@@ -51,3 +51,13 @@ ansible-playbook gnome.yml --check
ansible-playbook gnome.yml
```
## Installation rapide
Télécharger et lancer [install.sh](install.sh)
Exemple :
```bash
curl "https://gricad-gitlab.univ-grenoble-alpes.fr/phitem/environnement-bureau-gnome/-/raw/master/install.sh" | bash
```
#!/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 $@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment