Files
nginx-php-fpm/scripts/pull
Ric Harvey 00b51479e9 closes #103
2017-01-06 09:22:18 +00:00

16 lines
329 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 /var/www/html
git pull || exit 1
chown -Rf nginx:nginx /var/www/html