forked from coop-cloud/custom-html
Add git-pull functionality 💅
This commit is contained in:
11
entrypoint.git-pull.sh
Normal file
11
entrypoint.git-pull.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d /git/.git ]; then
|
||||
echo "No repo found, emptying /git/ directory"
|
||||
rm -r /git/*
|
||||
echo "Cloning $GIT_REPO_URL into /git"
|
||||
git clone "$GIT_REPO_URL" /git
|
||||
else
|
||||
echo "Updating /git"
|
||||
git pull
|
||||
fi
|
Reference in New Issue
Block a user