Skip to content

Commit a3e32a8

Browse files
committed
chore: make possible start git folder at not empty folder
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 46a996f commit a3e32a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.docker/scripts/entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ groupmod --non-unique --gid "${HOST_GID}" www-data
66

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

0 commit comments

Comments
 (0)