Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | echo "export DOCKER_HOST_IP=$DOCKER_HOST_IP" > /home/voltha/.bashrc |
| 3 | echo "export PYTHONPATH=/cli" >> /home/voltha/.bashrc |
| 4 | echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /home/voltha/.bashrc |
| 5 | echo "export DOCKER_HOST_IP=$DOCKER_HOST_IP" > /home/voltha/.bash_profile |
| 6 | echo "export PYTHONPATH=/cli" >> /home/voltha/.bash_profile |
| 7 | echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /home/voltha/.bash_profile |
| 8 | echo '/cli/cli/main.py -L -C $DOCKER_HOST_IP:8500' >> /home/voltha/.bash_profile |
| 9 | echo "logout" >> /home/voltha/.bash_profile |
| 10 | chown voltha.voltha /home/voltha/.bash_profile |
| 11 | /usr/sbin/sshd -D |
| 12 | |