deploy.sh a besoin d'être root pour une application locale de la recette
This commit is contained in:
parent
9ae2951159
commit
18a5acced8
|
@ -31,6 +31,13 @@ if [[ $REMOTE = false ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Vérifier qu'on exécute le playbook en root, sinon on a pas assez de privilèges et ça ne sert à rien!
|
||||
if [[ "$EUID" != 0 ]]; then
|
||||
echo "ERREUR: Ce script doit être exécuté en root si exécuté localement."
|
||||
echo " Tu veux que je configure quoi pour toi si j'ai pas les permissions? ;)"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
CMD="$CMD --connection=local --inventory 127.0.0.1, --limit 127.0.0.1"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue