Files
nginx-php-fpm/scripts/pull
2016-01-18 22:08:03 +00:00

15 lines
291 B
Bash
Executable File

#!/bin/bash
if [ -z "$GIT_EMAIL" ]; then
echo "You need to pass the \$GIT_EMAIL variable to the container for this to work"
exit
fi
if [ -z "$GIT_NAME" ]; then
echo "You need to pass the \$GIT_NAME variable to the container for this to work"
exit
fi
cd /usr/share/nginx/html
git pull