Skip to content

Commit

Permalink
chore: make possible start git folder at not empty folder
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jul 18, 2024
1 parent 46a996f commit a3e32a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .docker/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ groupmod --non-unique --gid "${HOST_GID}" www-data

# Clone Nextcloud repository, if needed
if [ ! -d ".git" ]; then
git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /var/www/html
git init
git remote add origin https://github.com/nextcloud/server
git fetch --depth=1 origin "${VERSION_NEXTCLOUD}"
git checkout "${VERSION_NEXTCLOUD}"
git submodule update --init --recursive
mkdir data
mkdir apps-writable
mkdir apps-extra
Expand Down

0 comments on commit a3e32a8

Please sign in to comment.