mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 23:22:04 +00:00
Merge pull request #152 from overleaf/ho-remove-install-texlive-startup
remove ./bin/install_texlive_gce.sh which shouldn't be needed
This commit is contained in:
commit
f86f6395da
2 changed files with 0 additions and 22 deletions
|
@ -1,21 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
METADATA=http://metadata.google.internal./computeMetadata/v1
|
|
||||||
SVC_ACCT=$METADATA/instance/service-accounts/default
|
|
||||||
PROJECT_URL=$METADATA/project/project-id
|
|
||||||
ACCESS_TOKEN=$(curl -s -H 'Metadata-Flavor: Google' $SVC_ACCT/token | cut -d'"' -f 4)
|
|
||||||
if [ -z "$ACCESS_TOKEN" ]; then
|
|
||||||
echo "No acccess token to download texlive-full images from google container, continuing without downloading. This is likely not a google cloud enviroment."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
PROJECT=$(curl -s -H 'Metadata-Flavor: Google' $PROJECT_URL)
|
|
||||||
if [ -z "$PROJECT" ]; then
|
|
||||||
echo "No project name to download texlive-full images from google container, continuing without downloading. This is likely not a google cloud enviroment."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
docker login -u '_token' -p $ACCESS_TOKEN https://gcr.io
|
|
||||||
docker pull --all-tags gcr.io/$PROJECT/texlive-full
|
|
||||||
cp /app/bin/synctex /app/bin/synctex-mount/synctex
|
|
||||||
|
|
||||||
echo "Finished downloading texlive-full images"
|
|
||||||
|
|
||||||
|
|
|
@ -21,5 +21,4 @@ chown -R node:node /app
|
||||||
|
|
||||||
chown -R node:node /app/bin
|
chown -R node:node /app/bin
|
||||||
|
|
||||||
./bin/install_texlive_gce.sh
|
|
||||||
exec runuser -u node -- "$@"
|
exec runuser -u node -- "$@"
|
||||||
|
|
Loading…
Reference in a new issue