mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:03:34 -05:00
[misc] install a maintained ghostscript version and delete package lists
also do not install vim and bail out in case any command exited with a non zero exit code.
This commit is contained in:
parent
2f99c220f8
commit
c1d81dc1ea
1 changed files with 6 additions and 7 deletions
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install vim imagemagick optipng --yes
|
apt-get install ghostscript imagemagick optipng --yes
|
||||||
|
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
wget -q https://s3.amazonaws.com/sl-public-dev-assets/ghostscript-9.15.tar.gz -O /tmp/ghostscript-9.15.tar.gz
|
|
||||||
cd /tmp
|
|
||||||
tar -xvf /tmp/ghostscript-9.15.tar.gz
|
|
||||||
cd /tmp/ghostscript-9.15 && ./configure && make && make install
|
|
||||||
npm rebuild
|
|
||||||
mkdir /app/user_files/ /app/uploads/ /app/template_files/
|
mkdir /app/user_files/ /app/uploads/ /app/template_files/
|
||||||
chown -R node:node /app/user_files
|
chown -R node:node /app/user_files
|
||||||
chown -R node:node /app/uploads
|
chown -R node:node /app/uploads
|
||||||
chown -R node:node /app/template_files
|
chown -R node:node /app/template_files
|
||||||
ls -al /app
|
|
Loading…
Reference in a new issue