Skip to content

Commit 6766467

Browse files
fix
1 parent 3188e03 commit 6766467

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.devcontainer/postStartCommand.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sudo cp .devcontainer/spark.conf /etc/supervisor/conf.d/
88
cd /tmp/spark
99
bash spark-sdk-dist/repair.sh
1010
LATEST_RELEASE="$LATEST_RELEASE" WORKSPACE_DIR="$WORKSPACE_DIR" bash /tmp/spark/spark-sdk-dist/install-tools.sh services
11+
cd /workspaces/spark-template
1112

1213
sudo chown node /var/run/
1314
sudo chown -R node /var/log/
@@ -16,14 +17,15 @@ supervisord
1617
supervisorctl reread
1718
supervisorctl update
1819

19-
cd /workspaces/spark-template
2020
# Check if SNAPSHOT_SAS_URL was passed, if so run hydrate.sh
2121
if [ -n "$SNAPSHOT_SAS_URL" ]; then
2222
WORKSPACE_DIR="/workspaces/spark-template"
2323
SAS_URI="$SNAPSHOT_SAS_URL" /usr/local/bin/hydrate.sh $WORKSPACE_DIR
2424
fi
2525

26+
cd /tmp/spark
2627
LATEST_RELEASE="$RELEASE_ID" WORKSPACE_DIR="$WORKSPACE_DIR" bash /tmp/spark/spark-sdk-dist/install-tools.sh sdk
28+
cd /workspaces/spark-template
2729

2830
# Keep reflog commits "forever"
2931
git config gc.reflogExpire 500.years.ago
@@ -35,4 +37,6 @@ git config gc.reflogExpireUnreachable 500.years.ago
3537
ln -fs /usr/local/bin/post-commit .git/hooks/post-commit
3638
/usr/local/bin/static-preview-build.sh
3739

40+
cd /tmp/spark
3841
LATEST_RELEASE="$RELEASE_ID" WORKSPACE_DIR="$WORKSPACE_DIR" bash /tmp/spark/spark-sdk-dist/install-tools.sh cli
42+
cd /workspaces/spark-template

0 commit comments

Comments
 (0)