-
Dominique Marcadet authoredDominique Marcadet authored
wrapper_script.sh 348 B
#!/bin/bash
cp -TRn /init-config/ /config
chown -R abc:abc /config
# MyDocker send a username to $1 and a password to $2
if [ "$2" ]; then
export CUSTOM_USER=$1
export PASSWORD=$2
# Do this only on MyDocker where there are 2 IP adresses
echo "$(hostname -I | cut -f2 -d' ') $HOSTNAME" >> /etc/hosts
fi
exec /init