mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Copy synctex executable to docker host (#129)
This commit is contained in:
@@ -16,4 +16,17 @@ if [ -e '/var/run/docker.sock' ]; then
|
||||
usermod -aG dockeronhost www-data
|
||||
fi
|
||||
|
||||
# Copies over CSLI synctex to the host mounted volume, so it
|
||||
# can be subsequently mounted in TexLive containers on Sandbox Compilation
|
||||
SYNCTEX=/var/lib/sharelatex/bin/synctex
|
||||
if [ ! -f "$SYNCTEX" ]; then
|
||||
if [ "$DISABLE_SYNCTEX_BINARY_COPY" == "true" ]; then
|
||||
echo ">> Copy of synctex executable disabled by DISABLE_SYNCTEX_BINARY_COPY flag, feature may not work"
|
||||
else
|
||||
echo ">> Copying synctex executable to the host"
|
||||
mkdir -p $(dirname $SYNCTEX )
|
||||
cp /var/www/sharelatex/clsi/bin/synctex $SYNCTEX
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /var/www/sharelatex/clsi/app.js >> /var/log/sharelatex/clsi.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user