From 3d72603c26b85e2f65544778854c7cc3b46072ee Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 17 May 2024 16:13:43 +0000 Subject: [PATCH] =?UTF-8?q?build=20script=20=EB=88=84=EB=9D=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/app/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hidche/app/entrypoint.sh b/hidche/app/entrypoint.sh index aa2445f..84b6046 100755 --- a/hidche/app/entrypoint.sh +++ b/hidche/app/entrypoint.sh @@ -14,7 +14,9 @@ if [ ! -f "$samRoot/index.php" ]; then mkdir -p $samRoot chown -R www-data:www-data $wwwRoot gosu www-data git clone $gameGitPath $samRoot + pushd $samRoot gosu www-data git checkout $gameGitBranch + popd fi if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then @@ -29,4 +31,4 @@ if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then gosu www-data git clone $imgGitPath $imageRoot fi -exec "$@" \ No newline at end of file +exec "$@"