Files
photoBooth/scripts/sudoers-jh-photomaton
admin 209f81aa3d
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled
first commit
2026-07-16 00:55:29 +02:00

18 lines
845 B
Plaintext

# =============================================================================
# Règle sudoers — JH Photomaton
#
# INSTALLATION :
# sudo cp scripts/sudoers-jh-photomaton /etc/sudoers.d/jh-photomaton
# sudo chmod 440 /etc/sudoers.d/jh-photomaton
# sudo visudo -c # vérification syntaxe
#
# Permet à l'utilisateur 'pi' de redémarrer/vérifier le service jh-photomaton
# sans saisir de mot de passe sudo — requis pour le déploiement CI/CD.
# =============================================================================
pi ALL=(ALL) NOPASSWD: /bin/systemctl restart jh-photomaton, \
/bin/systemctl start jh-photomaton, \
/bin/systemctl stop jh-photomaton, \
/bin/systemctl status jh-photomaton, \
/bin/systemctl reload jh-photomaton