summaryrefslogtreecommitdiffstats
path: root/.devcontainer
diff options
context:
space:
mode:
authorRobin Windey <ro.windey@gmail.com>2023-03-31 09:25:24 +0000
committerGitHub <noreply@github.com>2023-03-31 13:53:06 +0000
commit3f69e1232dfa5843c7f9161bb4e7fee73a31f322 (patch)
tree02a9f13c6c918b9bae3a1400881540426ad89426 /.devcontainer
parentdfa8a8c946c5eaec1b1fbfc413c9eb1b612ffab9 (diff)
downloadnextcloud-server-3f69e1232dfa5843c7f9161bb4e7fee73a31f322.tar.gz
nextcloud-server-3f69e1232dfa5843c7f9161bb4e7fee73a31f322.zip
Move git safe.directory to earlier stage
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to '.devcontainer')
-rwxr-xr-x.devcontainer/setup.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
index 2b61f3f9190..aac1f82f083 100755
--- a/.devcontainer/setup.sh
+++ b/.devcontainer/setup.sh
@@ -2,15 +2,16 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )"
cd $DIR/
-git submodule update --init
-
-# Codespace config
-cp .devcontainer/codespace.config.php config/codespace.config.php
# Set git safe.directory
git config --global --add safe.directory /var/www/html
git config --global --add safe.directory /var/www/html/3rdparty
+git submodule update --init
+
+# Codespace config
+cp .devcontainer/codespace.config.php config/codespace.config.php
+
# Onetime installation setup
if [[ ! $(sudo -u ${APACHE_RUN_USER} php occ status) =~ installed:[[:space:]]*true ]]; then
echo "Running NC installation"