ansible: HD setup
This commit is contained in:
10
ansible/docker-entrypoint.sh
Normal file
10
ansible/docker-entrypoint.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Exécuter le script d'initialisation en tant que root
|
||||
if [ "$(id -u)" = '0' ]; then
|
||||
. /usr/local/bin/nonroot_ssh_proxy_setup.sh
|
||||
exec env SSH_AUTH_SOCK=$SSH_AUTH_SOCK gosu arcodange "$0" "$@"
|
||||
fi
|
||||
|
||||
# Exécuter le reste des commandes en tant que non-root
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user