Download scripts/pull from dumamai/java-fpm: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/scripts/pull
- Command line
-
hf download hf://spaces/dumamai/java-fpm/scripts/pull
-
curl -L -o pull https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/scripts/pull
455 Bytes
| #!/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 | |
| # Try auto install for composer | |
| if [ -f "${WEBROOT}/composer.lock" ]; then | |
| composer install --no-dev --working-dir=${WEBROOT} | |
| fi | |
| cd ${WEBROOT} | |
| git pull || exit 1 | |
| chown -Rf nginx:nginx ${WEBROOT} | |