test id user

This commit is contained in:
jpwilliam 2023-11-16 07:38:38 -03:00
parent 0e83ebafff
commit b01f959c99

View File

@ -1,4 +1,16 @@
#!/bin/bash #!/bin/bash
if [ ! -f ~/.ssh/id_ed25519.pub ]
then
echo "Vous devez installer le package sudo en tant que root et vous rajouter dans le groupe sudo"
echo "usermod -a -G sudo nom_utilisateur"
echo "Puis revenir en tant que utilisateur"
exit 1
fi
if [ $(id -u) -eq 0 ]
then
echo "Ce script doit être lancé en tant qu'utilisateur appartenant au groupe sudo"
exit 1
fi
sudo apt-get -y install jupyter python3-virtualenv python3-setuptools build-essential libssl-dev libffi-dev python3-dev libkrb5-dev sshpass yamllint python3-pip pipx sudo apt-get -y install jupyter python3-virtualenv python3-setuptools build-essential libssl-dev libffi-dev python3-dev libkrb5-dev sshpass yamllint python3-pip pipx
if [ ! -d /etc/ansible ] if [ ! -d /etc/ansible ]
then then